Commit Graph

7 Commits

Author SHA1 Message Date
Matthew Little
5e8353edc8 Updated structure 2014-01-13 18:06:39 -07:00
Matthew Little
57b44292c4 Updated structure 2014-01-13 17:48:19 -07:00
Matthew Little
2b5aefd7b4 example code for new structure 2014-01-13 17:39:04 -07:00
Andrea Baccega
be51126f09 Merge branch 'vekexasia'
Conflicts:
	example/coins/dogecoin.json
	example/init.js
	index.js
2014-01-13 22:47:48 +01:00
Andrea Baccega
a42fe87723 Added todolist
code cleanup
Added jobManager.blockHashHex which should generate the expected block hash but it seems to not work properly
Moved check for the share difficulty after the block check since it's useless to make the check there.
Changed emit event from client to client.connected and added client.disconnected
Changed share emit data. Now we pass the client instance to everyone listening to the share event.
Added mining.get_transaction to the handled events of stratumclient. It looks like bfgminer uses this.
changed StratumClient.sendDifficulty to StratumCLient.sendAndSetDifficulty which will also perform a check on the given difficulty and broadcasts the sendDifficulty message to the client Only if the new difficulty is different from the previous one.
Code cleanup and comments
2014-01-13 16:17:38 +01:00
Andrea Baccega
475dab8aab Added difficulty parameter to the authorizeFn 2014-01-12 23:43:02 +01:00
Andrea Baccega
3a9b8b94aa Refactored folder structure to better match node module standard structure.
Added comments on some classes
2014-01-12 21:11:20 +01:00