joshuayabut
cb984a997d
Bugfix: Merkleroot not calculated correctly for multi-transaction blocks
2016-11-27 12:08:37 -05:00
joshuayabut
0789bfe61f
Bugfix: Set varDiff 1 difficulty as max POW target
2016-11-27 12:08:31 -05:00
joshuayabut
6a12b7fb71
Disable authentication in order to support Claymore miner taxation
2016-11-20 01:31:21 -05:00
joshuayabut
d561a4049b
Disable authentication in order to support Claymore miner taxation
2016-11-20 01:08:39 -05:00
joshuayabut
c23f01990e
Bug fixes
2016-11-20 00:38:01 -05:00
joshuayabut
4762891823
Bug fixes
2016-11-20 00:12:02 -05:00
joshuayabut
f5519325d8
Bug fixes
2016-11-19 23:55:06 -05:00
joshuayabut
d4e4abbe3c
Bug fixes
2016-11-19 23:50:07 -05:00
joshuayabut
fd2a0f7513
Bug fixes
2016-11-18 20:25:05 -05:00
joshuayabut
b6bbeaf29b
Set lower share difficulty
2016-11-18 02:43:32 -05:00
joshuayabut
c7c01b0380
Fixed block hashing and endianness issues
2016-11-18 02:39:55 -05:00
joshuayabut
93038b913f
Fixed BIP34 compliance
2016-11-18 02:09:56 -05:00
joshuayabut
4ce820dda0
Replaced multihashing with native equihashverify
2016-11-17 18:21:11 -05:00
joshuayabut
4cb9d21ccb
Initial Z-NOMP Commit
2016-11-16 16:39:00 -05:00
Christopher Franko
af52fe30c5
patch-2 scrypt-og
...
this fixes the problem with blocks not submitting correctly to the daemon for aidencoin.
2014-11-14 11:52:43 -05:00
Matthew Little
d3e2e00b58
Merge pull request #87 from chrisfranko/patch-1
...
Updated to add Scypt-og
2014-08-04 13:24:10 -06:00
qazzac
8713a643eb
Support sha1coin
...
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2014-07-26 13:45:34 +09:00
Matthew Little
3586ec0d73
Initial x15 support
2014-06-27 11:25:55 -06:00
Christopher Franko
d7802bcbd3
Updated to add Scypt-og
...
For aidencoin
2014-06-21 14:32:32 -04:00
Matthew Little
d2354063ac
Allow reward type to be configured in coin definition instead of auto detected
2014-06-21 09:20:03 -06:00
Matthew Little
66d4038051
Added NIST5 hashing
2014-06-16 11:39:45 -06:00
Darkcoin
c371039070
Darkcoin masternode payments have been changed from 10% to 20%
2014-06-07 15:03:31 -07:00
Matthew Little
58d1cb11ae
Merge remote-tracking branch 'origin/master'
2014-05-30 09:17:55 -06:00
Matthew Little
0aa86f2157
Added x13 as supported algo
2014-05-30 09:17:46 -06:00
Jerry Brady
da5adfc3a1
remove extra emit of started event
2014-05-15 00:14:59 +00:00
Matt
e70ae9c533
Fixed port emit, it was using remotePort instead of localPort
2014-05-09 17:14:15 -06:00
Matt
eb4b62e9c4
Added port to share emitter
2014-05-09 16:43:53 -06:00
Matt
de1c8c018b
Fixed bug in last commit
2014-05-09 10:07:23 -06:00
Matt
e9e7756242
Give 1% variance in shares to account for javascript precision loss
2014-05-09 10:01:59 -06:00
Matt
dc17481db6
Increased socket flooding detection threshold
2014-05-07 12:24:29 -06:00
Matt
74b6cc0052
Removed "shareVariancePercent" option as its no longer useful
2014-05-07 12:22:10 -06:00
Matt
b4784b1d9f
Removed "txRefreshInterval" option as its function is now replaced with "jobRebroadcastTimeout"
2014-05-07 11:56:16 -06:00
Matt
b24151729d
Modified coinbase generation to force Darkcoin's masternode payee as 2nd tx output.
2014-05-07 09:36:41 -06:00
Matt
a06ba67ab3
Updated to support new Darkcoin masternode features
2014-05-06 20:29:15 -06:00
Matt
dfad9e58c6
Added rewardRecipients config, moved peer magic to coin config
2014-05-02 16:02:17 -06:00
Matt
64d832e1a2
Merge remote-tracking branch 'origin/master'
2014-04-30 20:42:32 -06:00
Matt
42e6df669e
Removed redundant code
2014-04-30 20:42:26 -06:00
Lucas Jones
41ff0b0868
Fix vardiff
2014-04-27 17:38:59 +01:00
Matt
fe64fb8855
Changes to setting vardiff (for coin-switching). Added pubkey to address function
2014-04-26 16:24:54 -06:00
Matt
89e9f47e47
Fixed share multipliers for groestl and fugue
2014-04-26 00:55:45 -06:00
Matt
c7bf05107f
Fix for fugue - was missing share multiplier
2014-04-25 22:28:31 -06:00
Matt
3680413f89
Merge remote-tracking branch 'origin/master'
2014-04-25 21:33:12 -06:00
Matt
92cd1f7907
Fix for groestl - was missing share multiplier
2014-04-25 21:33:04 -06:00
Jordan Earls
6e854e2354
Allow specifying raw N-value and R-value to scrypt
2014-04-25 00:36:19 -04:00
Lucas Jones
d75498c517
Fix coinbase hashing for skein
2014-04-22 17:42:46 +01:00
Matt
e44f2636ae
Added more algos for testing
2014-04-21 16:26:09 -06:00
Matt
a7896d593b
scrypt-jane POS coins don't use sha256d for block hash.
2014-04-21 14:54:42 -06:00
Matt
7aa918ef95
Added groestl to algos
2014-04-21 14:31:35 -06:00
Matt
58668a9543
Fixed blockhash generation (block submission checking) for POS scrypt coins
2014-04-20 21:17:47 -06:00
Matt
50ffb00440
Removed concept of 'maxdiff' for different algos - replaced with "share multiplier" which is more accurate. Removed use of bignum for determining difficulty as JS number seem to be precise enough
2014-04-20 11:56:00 -06:00
Matthew Little
9a42211c38
Converted init coin info detection from RPC waterfall to batch RPC call. Added getblocktemplate after submitting block
2014-04-19 13:46:34 -06:00
Matthew Little
8806aa8896
Fixed block hash generation for various algos
2014-04-18 21:41:55 -06:00
Matt
7b24ce543d
Fixed share diff for quarkcoin (blocks submit successfully but NOMP does not detect them due to the block hash not being generated correctly)
2014-04-18 16:28:11 -06:00
Matt
1dee4a5a0a
Fixed job rebroadcast sending duplicate jobs. Rebroadcasting should work with miners such as bfgminer now.
2014-04-18 14:34:44 -06:00
Matt
a4b087cec4
Fixed block solutions not being reported
2014-04-18 13:33:17 -06:00
Matthew Little
3db1b47199
Changes in how max difficulty and share validation works. Should be more accurate for scrypt based algos and x11
2014-04-17 12:52:52 -06:00
Matt
ca27990228
Updated readme overscrolling text
2014-04-16 17:59:13 -06:00
Matt
5d236c63fb
Added documentation for p2p usage
2014-04-16 11:50:58 -06:00
LucasJones
0de1e50f59
Some work on the p2p system
...
Fix several bugs in peer.js and enable it to successfully connect to a peer (tested with bitcoind).
2014-04-16 13:14:29 +01:00
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
Matt
7cf448d1e2
Added reward to share emit (for payment processing ;) )
2014-03-12 15:55:58 -06:00
Matt
585baf7b92
Added tx to share emit
2014-03-09 20:32:24 -06:00
Matt
a608380597
Catch error better for invalid rpc auth
2014-03-09 13:28:39 -06:00
Matt
4a088b19fc
Fix for miners disconnecting. Jobs are broadcasted at least every 30 seconds.
2014-03-09 13:16:47 -06:00
Bradley Matusiak
80658e8824
Update varDiff.js
...
options where not defined.. turned out its under key in ports object
2014-03-07 03:31:18 -05:00
Bradley Matusiak
41fcb8b204
Update varDiff.js
2014-03-07 03:03:04 -05:00
Matt
f43a5833cf
Added the gibberish mining.set_difficulty flag to subscription - needed by some miners
2014-03-06 15:55:10 -07:00
Matt
bd2de18dab
Made ban purge interval a config
2014-03-06 14:27:23 -07:00
Matt
43aa152c85
Added worker banning feature and updated readme
2014-03-06 13:46:16 -07:00
Matt
56e1905bb3
connection timeout to ms
2014-03-06 01:52:24 -07:00
Matt
7dbcc4f863
Updated readme desc
2014-03-06 01:50:43 -07:00
Matt
78d2e9bb14
Bug fix with stratum auth
2014-03-04 13:24:24 -07:00
Matt
98e57a1712
Removed innaccurate log message
2014-03-04 01:34:24 -07:00
Matt
eaf8f99d30
Added support for multiple ports with their own diffs and vardiff
2014-03-03 22:54:20 -07:00
Andrea Baccega
1716d6d738
Fixes issue #17 . Damn semicolumn!
2014-03-03 22:16:10 +01:00
Andrea Baccega
db331a697c
Fix issue #16
...
Fix issue #16
2014-03-03 09:38:22 +01:00
Andrea Baccega
1e3c47d527
Refactored handleAuthorize to accept a new parameter used to reply or not to the socket
2014-03-02 15:57:06 +01:00
Matt
a0a46621a2
Restructured module - removed stratum object so only pool object is exposed
2014-03-01 12:18:18 -07:00
Andrea Baccega
75dfeccd8c
Added basic API + first draft of miner moving methods
2014-03-01 20:04:13 +01:00
Matt
06e882d80e
Moved blocknotify related code out of this repo into the portal repo where it is more appropriately used
2014-02-28 20:13:51 -07:00
Matt
c81d9c463a
Refactored configuration options to preparation for portal software
2014-02-27 16:59:32 -07:00
Matt
b33d5f7941
Made network difficulty different than share difficulty - had accidently made them duplicate
2014-02-27 12:32:54 -07:00
Matt
b6c8039168
Fixed type rcpCommand -> rpcCommand lol
2014-02-27 11:40:50 -07:00
Matthew Little
d45c2fadc6
Merge pull request #13 from bricecarpentier/master
...
Fixed issue #12
2014-02-27 11:33:42 -07:00
Matt
6cc97aff5b
Better error handling when dealing with multiple RPC daemons
2014-02-27 11:27:09 -07:00
Brice Carpentier
eb8907e1a9
fixed #12 JobManager's newBlock event never gets emitted
...
The `init` function does not auto-execute anymore. It is instead added as a public member for `DaemonInterface` and called by `Pool.SetupDaemonInterface`.
2014-02-27 10:27:43 +01:00
Matt
16807d3226
Added more details for upcoming new hashing algos
2014-02-27 01:31:17 -07:00
Matt
4bad017613
Added block/network difficulty to pool on share emitter
2014-02-27 01:26:43 -07:00
Matt
2d1b23ddb8
Minor logging improvements
2014-02-27 00:25:23 -07:00
Matt
0f38fd5549
Fixed bug where block was not being reported as found when it actually was
2014-02-26 22:56:47 -07:00
Matt
57f8dc3ffa
Add block height to data emitted on pool share
2014-02-26 21:34:04 -07:00
Matt
79c1a95b59
Switch vardiff.mode to safe by default.
2014-02-26 21:21:41 -07:00
Matt
5b0c39e840
Fix for broken block polling
2014-02-26 18:37:12 -07:00
Matt
2d3416a02f
Added support for multiple daemons/rpc for redundancy when they occasionally die or drop out-of-sync
2014-02-26 18:16:18 -07:00
Matt
37ab36f776
Check for updates with block transactions
2014-02-25 14:19:11 -07:00
Matthew Little
6d310ef968
Cleaner message stream reading
2014-02-22 21:13:14 -07:00
Matthew Little
47892ab6d8
Cleaner message stream reading
2014-02-22 20:52:11 -07:00
Matthew Little
0a6f05a067
Update peer.js
...
Added documentation for relay transaction flag.
2014-02-22 19:28:02 -07:00
Matthew Little
69feb04da1
Convert diff dividend to bignum only on init.
2014-02-21 23:09:02 -07:00
Matthew Little
070d7c2f2a
Merge pull request #7 from bart-is/master
...
Fixed calculating user share target by using bignum
2014-02-21 21:09:25 -07:00
Matt
31d42f3f51
Began work on creating a peer node module for more efficient block notifications
2014-02-21 17:49:59 -07:00