Jethro Grassie
3622e70b82
Merge pull request #35 from cohcho/fix_compare_share
...
store_share: modify compare_share to avoid fail
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
ee690126d7
fix just found time label
4 years ago
Jethro Grassie
d80390c0fb
add minor formatting improvements
4 years ago
Jethro Grassie
18ce80693a
Merge pull request #31 from cohcho/round_hashes
...
Add round_hashes into pool_stats
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
b8c62a0378
improve cookie parsing
4 years ago
Jethro Grassie
ed542aec9d
print options
4 years ago
Jethro Grassie
0335d92e28
update the docs
4 years ago
Jethro Grassie
e103d130fb
add missing title tag to web UI
4 years ago
Jethro Grassie
f774647632
allow disabling of the web UI altogether
4 years ago
Jethro Grassie
f987fd4aa9
fix log and return types for web ui
4 years ago
Jethro Grassie
9ba84a4a76
advertise SSL port (if configured)
4 years ago
Jethro Grassie
9a091921f1
fix empty cookies
4 years ago
Jethro Grassie
56df00634f
Merge branch 'remove-mhd'
4 years ago
Jethro Grassie
c97b0f1c37
update docs
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
01f3b34c4b
swap out form to contenteditable cell
4 years ago
Jethro Grassie
595ddd934e
make MHD use epoll if available
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
5 years ago
Jethro Grassie
c9346f4a3d
tidy memset
5 years ago
Jethro Grassie
0ae2946486
spelling
5 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
b790700c32
stratum self-select doc update
5 years ago
Jethro Grassie
d3d80b0084
copy strings appropriately
5 years ago
Jethro Grassie
21ad942008
reorder link
5 years ago
Jethro Grassie
3925e827ba
update example config file with the new options
5 years ago
Jethro Grassie
88ac5af85b
add libversion
5 years ago
Jethro Grassie
d40a5762cf
Merge branch 'daemonize'
5 years ago
Jethro Grassie
ac275237c5
add options to daemonize
5 years ago
Jethro Grassie
9c6ef738f1
link libhidapi if required
5 years ago
Jethro Grassie
de089698d2
fix XNP memory corruption
5 years ago
Jethro Grassie
cc0bfd2b56
Merge pull request #18 from trasherdk/monero-out-of-source
...
Support Monero out-of-source build
5 years ago
TrasherDK
5e4392f1be
Support Monero out-of-source build
5 years ago
Jethro Grassie
21bf3019eb
Merge branch 'xmrig-proxy-support'
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
e784fb24ac
Merge pull request #16 from trasherdk/web-ui-content-type
...
Add Content-Type to JSON response
5 years ago
TrasherDK
c82ef6e3bc
Add Content-Type to JSON response
5 years ago
Jethro Grassie
e64437b70d
update based on rx latest patch
5 years ago