Commit Graph

99 Commits

Author SHA1 Message Date
Matthew Little
2b5aefd7b4 example code for new structure 2014-01-13 17:39:04 -07:00
Andrea Baccega
6ad310b872 Added coin/dogecoin at gitignore so we don't mess around with payment addresses
Fixed merge shit
2014-01-13 23:30:31 +01: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
Matthew Little
f8efd80488 refactored block polling and pool setup 2014-01-13 16:23:41 -05:00
Matthew Little
677bc176a4 updated 2014-01-13 14:17:56 -05:00
Matthew Little
69eec8318e updated 2014-01-13 14:09:53 -05:00
Andrea Baccega
fc8e18645b Fixed Todolist markup 2014-01-13 17:54:35 +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
263972fcdc When clients disconnect new emit + memory clean up
Replaced some console.log with console.error
2014-01-13 11:06:43 +01:00
Andrea Baccega
475dab8aab Added difficulty parameter to the authorizeFn 2014-01-12 23:43:02 +01:00
Andrea Baccega
6472baacc2 Removed 'authorize' emit event and created which is now replaced by an authorize function.
Added ip address to the authorize event
Added ability for the authorizeFn to ask StratumClient to close connection
2014-01-12 21:54:20 +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
Andrea Baccega
a301c49943 Removed reward parameter from blocktemplates as it was misnamed
other stuff
2014-01-12 16:35:32 +01:00
Andrea Baccega
0ef96c8daf Removed unnecessary comments or variable 2014-01-12 15:12:41 +01:00
Andrea Baccega
d26e00fee2 Added some comments,
Fixed the code that was checking for new blocks.
Removed jobId from the constructor arguments of BlockTemplate and created a setter Instead.
Added "start" emit event from "Pool" that is going to be used by the polling block submit handler
2014-01-12 15:08:58 +01:00
Andrea Baccega
cb1e40d8eb Fixed block submission hex. 2014-01-12 14:10:40 +01:00
Matthew Little
43517a8824 added blocknotify functionality 2014-01-11 14:25:57 -05:00
Matthew Little
f6b512168b updated 2014-01-11 13:53:18 -05:00
Matthew Little
aa09b4433e updated 2014-01-11 13:52:15 -05:00
Matthew Little
b6a4bc4d66 updated 2014-01-11 13:52:02 -05:00
Matthew Little
23b7d2a705 updated 2014-01-11 13:50:34 -05:00
Matthew Little
eb7c04e509 updated 2014-01-11 13:50:04 -05:00
Matthew Little
43807bc353 updated 2014-01-11 13:49:42 -05:00
Matthew Little
fd2ced1c47 updated 2014-01-11 13:48:49 -05:00
Matthew Little
cff1234a18 updated 2014-01-11 13:48:32 -05:00
Matthew Little
f40481e58c updated 2014-01-11 13:48:13 -05:00
Matthew Little
96f287ed78 updated 2014-01-11 13:46:34 -05:00
Matthew Little
df670b567b updated 2014-01-11 13:46:15 -05:00
Matthew Little
5cfd62c2d3 updated 2014-01-11 13:45:54 -05:00
Matthew Little
960cd9d811 updated 2014-01-11 13:45:21 -05:00
Matthew Little
8727eef055 updated 2014-01-11 13:44:56 -05:00
Matthew Little
570c28c22c updated 2014-01-11 13:44:40 -05:00
Matthew Little
c3f3ec3000 updated 2014-01-11 13:44:21 -05:00
Matthew Little
7e650e2611 updated 2014-01-11 13:43:13 -05:00
Matthew Little
c4adf3b282 updated 2014-01-11 13:42:30 -05:00
Matthew Little
0a70bd3061 updated 2014-01-10 18:31:57 -05:00
Matthew Little
853a98a469 updated 2014-01-10 18:31:06 -05:00
Matthew Little
82d544341d updtaed 2014-01-10 18:29:37 -05:00
Matthew Little
d35caffd60 Updated 2014-01-10 18:27:24 -05:00
Matthew Little
f161612931 Updated 2014-01-10 18:27:11 -05:00
Matthew Little
a79d3fd6b9 Updated 2014-01-10 18:27:00 -05:00
Matthew Little
da917fd520 Updated 2014-01-10 18:25:33 -05:00
Matthew Little
f77b606418 Updated 2014-01-10 18:23:21 -05:00
Matthew Little
d7bac30c18 Updated 2014-01-10 18:23:03 -05:00
Matthew Little
d25a40394e Updated 2014-01-10 18:22:20 -05:00
Matthew Little
289b157ad5 Updated 2014-01-10 18:21:56 -05:00
Matthew Little
856e495b2e Updated 2014-01-10 18:21:36 -05:00
Matthew Little
c09ecccff3 Updated 2014-01-10 18:21:11 -05:00
Matthew Little
747f587fbb Updated 2014-01-10 18:20:03 -05:00
Matthew Little
b41dd96826 Updated 2014-01-10 18:18:23 -05:00