Commit Graph

144 Commits

Author SHA1 Message Date
LucasJones
cf3ffa375d Improve stratum message handling
Prevent the case where multiple messages are chunked together without being processed (occasionally leading to the buffer growing too large and the client being kicked).

Recognize messages consisting only of spaces as malformed.
2014-04-16 03:28:29 +01:00
Matt
fefa6986ea Added official haproxy support/configuration. Optimized/fixed banning. 2014-04-15 16:37:04 -06:00
suchpool
911ba75d75 Update to stratum.js
I got this handed to me by zone117x to enable the haproxy to send the real user ip using the send-proxy flag. He will re-work it and integrate it better, but I've pushed this commit for now for those who want to have it working.

Also, I fixed an issue where miners using Uppercase characters in their workers wouldn't get authed by the stratum. I simply added .toLowerCase(); where the stratum looks in the db for the workername.
2014-04-15 04:20:26 -04:00
Jerry Brady
7f9623b2f8 Keccak hash rate adjustment per piotrrojek 2014-04-09 01:40:15 +00:00
Matt
91940045ca Exposed vardiff object for external use 2014-04-08 12:24:24 -06:00
Matt
a9208a39d3 Added check for if daemons config is not array 2014-04-08 11:41:50 -06:00
Matt
86a4c05429 Added check for missing daemon config 2014-04-08 11:38:36 -06:00
Jerry Brady
7bdf345843 fixes to handle proxy switching accounting 2014-04-07 02:34:44 +00:00
Matthew Little
54b73dd0df Added low share diff tolerance. 2014-04-03 14:38:40 -06:00
Matt
d8abc4008d Accept low shares within a threshold - not finished 2014-04-03 12:31:48 -06:00
Matt
68f9fb566c Added "emitInvalidBlockHashes" option for those in MPOS mode that require it 2014-04-02 13:01:45 -06:00
Matt
78f6a8c2e6 Change diffs to stay in buffer or bignum format rather than hex or js number 2014-04-01 22:22:47 -06:00
Matt
7d5c7ed277 Added check to see if a submitted share matched a miner's previous difficulty from before vardiff retarget. 2014-04-01 16:58:20 -06:00
Matt
1e9bd77072 Use truncated diff1 (max difficulty) for algos by default. Report difficulty of low-diff shares. 2014-04-01 16:31:34 -06:00
Matt
bbb759cf37 Refactored pukkeyToScript for clarity 2014-04-01 11:18:31 -06:00
Matt
e049c413ba Refactored addressToScript for clarity 2014-04-01 10:29:38 -06:00
Matt
a50beb1932 Added jobRebroadcastTimeout configuration 2014-04-01 10:10:50 -06:00
Matt
a6e38a6bb0 Comment for hardcoding diff 2014-03-31 18:07:52 -06:00
Matt
d27f384461 Comment for hardcoding diff 2014-03-31 18:06:13 -06:00
Matt
4007a7e30c Made scrypt-n have configurable timeTables. 2014-03-31 16:40:22 -06:00
Matt
2d069546cc Increased percent digits 2014-03-30 17:15:34 -06:00
Matt
244d3a406d 1) Updated x11 to more accurate diff. 2) Low diff shares report percent off now - to detect if diff is too hard or you just have abusing miners. 3) Only 1 thread does the rpc calls to generate blockchain sync status 2014-03-30 17:03:23 -06:00
Matt
8505ca6c50 Port diff warnings were happening on accident 2014-03-30 14:39:07 -06:00
Matt
6c39d2d201 Fixed multiplier for x11 2014-03-30 04:15:06 -06:00
Matt
70c93178c6 Merged all hashing algos into one native addon, hurray! Diffs are dynamically calculated based off values in coin source code. 2014-03-30 03:09:44 -06:00
Matt
fa0414ee6d Ignore mining.get_transactions... 2014-03-29 19:22:05 -06:00
Matt
f7475a7fe8 Fixed broken hashing for sha256d 2014-03-29 14:01:32 -06:00
Matt
aacd5be06a More research on multi-algo 2014-03-28 16:40:26 -06:00
Matt
71d5f41257 Put all the different hashing algo info in the same place. Attempted to add keccak - it may or may not work. 2014-03-27 18:10:38 -06:00
Matt
615c1dbfbf Better logging.. 2014-03-27 09:33:13 -06:00
Matt
c8355ea211 Prettier log messages on init 2014-03-26 23:25:56 -06:00
Matt
b05f7689f3 Restructured pool object - much cleaner and easier to follow flow. 2014-03-26 22:41:25 -06:00
Matt
5b849dce59 Updated some git naming info 2014-03-26 20:13:25 -06:00
Matthew Little
41b121ab56 Fixed bugs that happen when banning is disabled. Attempted to add keccak (maxcoin). 2014-03-26 15:07:03 -06:00
Matt
1ae82cb21b Fixed difficulty not being correct for anything not scrypt. Fixed maxDiff for x11 hash. 2014-03-25 15:52:45 -06:00
Matt
57d2f02b28 Show progress is module was spawned without forkid 2014-03-23 22:24:57 -06:00
Matt
ffc01054c6 Added fixes for POS. And when getblocktemplate fails because its out of sync then it shows syncing progress :) 2014-03-23 22:22:01 -06:00
Matt
32dc22944e Better logging 2014-03-23 00:16:22 -06:00
Matt
a07bfd3a2e Refactored fix for previous commit 2014-03-22 12:44:12 -06:00
Daniel Zuwala
e1d9332e9a Fixed issue #39 2014-03-21 21:12:25 +01:00
Matt
b965b2d61d Another fix where vardiff was breaking things 2014-03-20 12:20:08 -06:00
Matt
b2052b6fbd Fixed vardiff (thanks pokecheck) 2014-03-20 01:24:13 -06:00
Matt
ed75a50d11 Do not depend on getmininginfo to see network diff 2014-03-19 15:20:06 -06:00
Matt
50c8fb7c1b Added txRefreshInterval 2014-03-19 14:52:27 -06:00
Matt
98d3dcc532 Added log error for socket error 2014-03-15 17:50:10 -06:00
Matt
5fd4097ce6 Removed console.logs not needed 2014-03-14 17:50:11 -06:00
Matt
b85f78ef09 Fixed tx was removed during merge 2014-03-14 17:37:10 -06:00
Matt
a4ba169300 Fixed typo in stratum.js 2014-03-14 16:25:35 -06:00
Andrea
bcad84af80 Fixed merging shit lol 2014-03-14 20:53:20 +00:00
Andrea
a4f302b526 Stuff for miners switch 2014-03-14 19:11:52 +00:00