Commit Graph

89 Commits

Author SHA1 Message Date
qvqc 3dac5660cf Merge branch 'upstream/master' 2020-04-22 04:53:59 -04:00
Jethro Grassie dcaca5144f
config: add an option for the pool listen address 2020-04-18 19:10:28 -04:00
qvqc 3ec4b16c6f change address prefix, blocktime, and atomic units to match wownero network 2020-04-11 10:50:07 -04:00
cohcho b380382196 store_share: modify compare_share to avoid fail
compare_share() doesn't implement strict ordering
store_share() uses MDB_APPENDDUP to avoid problem with compare_share
MDB_APPENDDUP may fail since the following pair of valid shares can't added in specified order:
  1. {share1, share2 | (share1.timestamp < share2.timestamp) && (share1.address > share2.address)}
  2. {share1, share2 | (share1.timestamp > share2.timestamp) && (share1.address == share2.address)}
If there is no plan to avoid usage of MDB_APPENDDUP in store_share()
then compare_share() can be modified to use only timestamp field
thus avoid MDB_APPENDDUP fail in the first case.
2020-03-03 07:52:20 +00:00
Jethro Grassie 834bef7008
ignore SIGPIPE so error propagates 2020-02-06 17:10:09 -05:00
Jethro Grassie 0846228da6
copyright 2020 2020-02-02 00:24:51 -05:00
Jethro Grassie dd16769ab6
improve bad share handling
(reported by cohcho, thank you)
2020-01-25 01:31:36 -05:00
cohcho 7ec47709fa
Update client target faster
Adjust client's target faster to prevent DDoS when hashrate is unknown at the
beginning and start difficulty is low or hashrate changed significantly later.
Add option retarget-ratio to control safe boundaries for client hashrate.
2020-01-23 22:59:19 -05:00
Jethro Grassie d80390c0fb
add minor formatting improvements 2020-01-18 16:34:24 -05:00
cohcho 0b12fc3f43 Add round_hashes into pool_stats 2020-01-18 19:32:57 +00:00
Jethro Grassie c9ba3a8428
add network validation 2020-01-17 15:43:08 -05:00
Jethro Grassie ed542aec9d
print options 2020-01-10 11:40:18 -05:00
Jethro Grassie f774647632
allow disabling of the web UI altogether 2020-01-05 19:48:37 -05:00
Jethro Grassie 9ba84a4a76
advertise SSL port (if configured) 2020-01-05 17:53:51 -05:00
Jethro Grassie e79861b519
remove libmicrohttpd
It seems unnecessary to use libmicrohttpd when libevent has everything
we need.  Thus removing the dependency.
2020-01-05 16:30:20 -05:00
Jethro Grassie 05fafe0fa4
fix comparators to always allow duplicates
(reported by cohcho, thanks)
2020-01-02 19:12:40 -05:00
Jethro Grassie c7984e0e5f
add retarget-time option
- allow setting a retarget time different to block time
 - tidy config printing (just reordering)
 - fix webui nethash formatting
2019-12-29 23:56:48 -05:00
Jethro Grassie 6f65aae241
fix clean exit for a failed startup 2019-12-28 01:37:51 -05:00
Jethro Grassie 5916e8bb34
fix spelling 2019-12-27 21:21:38 -05:00
Jethro Grassie e3e133f1d3
limit max target to block diff
(thanks to cohcho)
2019-12-27 21:10:38 -05:00
Jethro Grassie 7b6d4932c7
tidy config reading 2019-12-23 02:57:40 -05:00
Jethro Grassie c9346f4a3d
tidy memset 2019-12-22 15:27:33 -05:00
Jethro Grassie 0ae2946486
spelling 2019-12-18 22:38:12 -05:00
Jethro Grassie fc818af02c
add a couple of checks 2019-12-09 16:41:50 -05:00
Jethro Grassie bea8068bd9
remove FD_SETSIZE check 2019-11-29 20:03:11 -05:00
Jethro Grassie d3d80b0084
copy strings appropriately 2019-11-27 19:46:23 -05:00
Jethro Grassie ac275237c5
add options to daemonize 2019-11-17 15:56:47 -05:00
Jethro Grassie de089698d2
fix XNP memory corruption 2019-10-29 23:41:15 -07:00
Jethro Grassie d27694431e
treat xmr-node-proxy specifically
xmrig-proxy does not use the same job parameters as xmr-node-proxy.
Therefore, treat xmrig-proxy like any other miner.
2019-10-27 14:34:31 -04:00
Jethro Grassie c24a3ba3c8
use correct block hash for matching 2019-08-23 21:22:10 -04:00
Jethro Grassie 6471c6a20a
log failures of balance transfers 2019-08-23 16:53:29 -04:00
Jethro Grassie af9b9c8953
fix orphaning 2019-08-23 16:24:03 -04:00
Jethro Grassie bcc25dee1b
ease building with / without randomx 2019-08-21 19:35:30 -04:00
Jethro Grassie 2c636d00e9
fix balance updates 2019-08-21 18:32:57 -04:00
Jethro Grassie 647971cde6
add RandomX support 2019-08-20 23:06:08 -04:00
Jethro Grassie 0d8479a3b2
improve compilation flags
- more / specific warnings enabled
 - specify c std
2019-08-07 00:03:53 -04:00
Jethro Grassie 01b2f3274c
minor improvements
- binary data now explicitly unsigned char* to avoid confusion
 - rpc_get_request_body now using stecpy to avoid repeated strlen
2019-08-05 19:41:40 -04:00
Jethro Grassie ee722699c7
add data-dir option 2019-07-14 14:05:33 -04:00
Jethro Grassie 012edf01c1
kick client after N bad shares 2019-07-14 12:34:35 -04:00
Jethro Grassie c2029b178f
increase payload size allowance 2019-07-07 15:52:59 -04:00
Jethro Grassie b5a2dd5f5b
implement miner selected block templates 2019-07-07 11:23:23 -04:00
Jethro Grassie 86a9900dfc
add instance nonce to reserved 2019-06-20 22:38:53 -04:00
Jethro Grassie 512cfabd0a
float to double for rounding issues 2019-05-12 17:31:54 -04:00
Jethro Grassie 2d0e62929a
show time of last fetched template in the web ui 2019-05-12 12:50:40 -04:00
Jethro Grassie 747b471cd6
void 2019-05-11 21:08:16 -04:00
Jethro Grassie 98d6fc474f
don't drop from bounded stack and other tweaks 2019-05-11 21:08:16 -04:00
Jethro Grassie 3052e3e20d
fix copyright 2019-05-11 21:08:16 -04:00
Jethro Grassie 4a9a883a1a
reorder functions and fix width 2019-05-11 21:08:16 -04:00
Jethro Grassie cee0ca90ec
add bounded stack 2019-05-11 21:08:10 -04:00
Jethro Grassie 6dffa4788d
tidy rpc callbacks 2019-05-11 03:04:11 -04:00