qvqc
3dac5660cf
Merge branch 'upstream/master'
4 years ago
Jethro Grassie
dcaca5144f
config: add an option for the pool listen address
4 years ago
qvqc
3ec4b16c6f
change address prefix, blocktime, and atomic units to match wownero network
4 years ago
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.
4 years ago
Jethro Grassie
834bef7008
ignore SIGPIPE so error propagates
4 years ago
Jethro Grassie
0846228da6
copyright 2020
4 years ago
Jethro Grassie
dd16769ab6
improve bad share handling
...
(reported by cohcho, thank you)
4 years ago
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.
4 years ago
Jethro Grassie
d80390c0fb
add minor formatting improvements
4 years ago
cohcho
0b12fc3f43
Add round_hashes into pool_stats
4 years ago
Jethro Grassie
c9ba3a8428
add network validation
4 years ago
Jethro Grassie
ed542aec9d
print options
4 years ago
Jethro Grassie
f774647632
allow disabling of the web UI altogether
4 years ago
Jethro Grassie
9ba84a4a76
advertise SSL port (if configured)
4 years ago
Jethro Grassie
e79861b519
remove libmicrohttpd
...
It seems unnecessary to use libmicrohttpd when libevent has everything
we need. Thus removing the dependency.
4 years ago
Jethro Grassie
05fafe0fa4
fix comparators to always allow duplicates
...
(reported by cohcho, thanks)
4 years ago
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
4 years ago
Jethro Grassie
6f65aae241
fix clean exit for a failed startup
4 years ago
Jethro Grassie
5916e8bb34
fix spelling
4 years ago
Jethro Grassie
e3e133f1d3
limit max target to block diff
...
(thanks to cohcho)
4 years ago
Jethro Grassie
7b6d4932c7
tidy config reading
4 years ago
Jethro Grassie
c9346f4a3d
tidy memset
4 years ago
Jethro Grassie
0ae2946486
spelling
4 years ago
Jethro Grassie
fc818af02c
add a couple of checks
5 years ago
Jethro Grassie
bea8068bd9
remove FD_SETSIZE check
5 years ago
Jethro Grassie
d3d80b0084
copy strings appropriately
5 years ago
Jethro Grassie
ac275237c5
add options to daemonize
5 years ago
Jethro Grassie
de089698d2
fix XNP memory corruption
5 years ago
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.
5 years ago
Jethro Grassie
c24a3ba3c8
use correct block hash for matching
5 years ago
Jethro Grassie
6471c6a20a
log failures of balance transfers
5 years ago
Jethro Grassie
af9b9c8953
fix orphaning
5 years ago
Jethro Grassie
bcc25dee1b
ease building with / without randomx
5 years ago
Jethro Grassie
2c636d00e9
fix balance updates
5 years ago
Jethro Grassie
647971cde6
add RandomX support
5 years ago
Jethro Grassie
0d8479a3b2
improve compilation flags
...
- more / specific warnings enabled
- specify c std
5 years ago
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
5 years ago
Jethro Grassie
ee722699c7
add data-dir option
5 years ago
Jethro Grassie
012edf01c1
kick client after N bad shares
5 years ago
Jethro Grassie
c2029b178f
increase payload size allowance
5 years ago
Jethro Grassie
b5a2dd5f5b
implement miner selected block templates
5 years ago
Jethro Grassie
86a9900dfc
add instance nonce to reserved
5 years ago
Jethro Grassie
512cfabd0a
float to double for rounding issues
5 years ago
Jethro Grassie
2d0e62929a
show time of last fetched template in the web ui
5 years ago
Jethro Grassie
747b471cd6
void
5 years ago
Jethro Grassie
98d6fc474f
don't drop from bounded stack and other tweaks
5 years ago
Jethro Grassie
3052e3e20d
fix copyright
5 years ago
Jethro Grassie
4a9a883a1a
reorder functions and fix width
5 years ago
Jethro Grassie
cee0ca90ec
add bounded stack
5 years ago
Jethro Grassie
6dffa4788d
tidy rpc callbacks
5 years ago