Commit Graph

279 Commits

Author SHA1 Message Date
Jethro Grassie
70f865798f
allow listen socket reuse plus log client IP 2020-09-03 05:02:41 -04:00
Jethro Grassie
9184050df2
tweak bag 2020-09-03 05:01:58 -04:00
Jethro Grassie
2efa10a194
free client and fix edge count bug 2020-09-02 05:51:45 -04:00
Jethro Grassie
98bda36af4
conf: saner defaults 2020-09-02 03:28:46 -04:00
Jethro Grassie
30edb1a3e4
Merge branch 'count-by-account' into master 2020-09-02 00:02:14 -04:00
Jethro Grassie
5e5c1f0dfd
stats: hashrate averages 2020-09-01 23:55:28 -04:00
Jethro Grassie
4fbbed9523
stats: count by account instead of connections 2020-09-01 20:41:14 -04:00
Jethro Grassie
d2f6c7d45b
don't timeout downstreams, they're trusted 2020-08-29 20:14:35 -04:00
Jethro Grassie
bb67c77058
add idle timeout 2020-08-29 19:43:30 -04:00
Jethro Grassie
ea4bebb844
fix minor issue with a7fb6332c9 2020-06-21 00:35:53 -04:00
TrasherDK
5d122b8827
add optional pool fee wallet 2020-06-20 23:55:32 -04:00
Jethro Grassie
93acdd6e21
config: disable payouts option 2020-06-20 17:18:33 -04:00
Jethro Grassie
32fa6d2d25
reduce realloc for submissions 2020-06-20 17:18:33 -04:00
Jethro Grassie
cd4e78f8e5
config: fixed difficulty option 2020-06-20 17:18:33 -04:00
Jethro Grassie
a7fb6332c9
config: disable hash checking option 2020-06-20 17:18:21 -04:00
Jethro Grassie
5f86514d91
edge: fix pool hashrate stat overwrite 2020-06-18 03:34:54 -04:00
Jethro Grassie
d544a042ae
edge: fix stats on upstream disconnect 2020-05-30 16:01:56 -04:00
Michael Contreras
66507021e0
pool:rpc_on_wallet_transferred: check underflow
Check against balance integer underflow in rpc_on_wallet_transferred.
2020-05-05 23:57:31 -04:00
Jethro Grassie
047aef644c
use rwlock semantics for database resizing 2020-05-03 23:14:12 -04:00
Jethro Grassie
c12b8b78e5
bstack: rename peek to top 2020-05-03 17:35:18 -04:00
Jethro Grassie
4bc1589781
use bstack for jobs 2020-05-03 17:06:13 -04:00
Jethro Grassie
bb011fa9cc
prevent resizing clients whilst reading 2020-05-03 00:14:29 -04:00
Jethro Grassie
37f605efdc
database: add resizing 2020-05-02 22:38:38 -04:00
Jethro Grassie
9dd062d8c5
log: mutex 2020-05-02 15:01:21 -04:00
Jethro Grassie
61f1abbc30
upstream: sync a count with connect 2020-04-26 19:47:58 -04:00
Jethro Grassie
97c3993cf7
feature: interconnected pools 2020-04-25 18:12:21 -04:00
Jethro Grassie
dcaca5144f
config: add an option for the pool listen address 2020-04-18 19:10:28 -04:00
Jethro Grassie
d2d4c3393f
docs: remove "experimental" 2020-03-04 01:06:25 -05:00
Jethro Grassie
3622e70b82
Merge pull request #35 from cohcho/fix_compare_share
store_share: modify compare_share to avoid fail
2020-03-03 18:20:52 -05: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
ee690126d7
fix just found time label 2020-01-19 04:50:14 -05:00
Jethro Grassie
d80390c0fb
add minor formatting improvements 2020-01-18 16:34:24 -05:00
Jethro Grassie
18ce80693a
Merge pull request #31 from cohcho/round_hashes
Add round_hashes into pool_stats
2020-01-18 14:55:40 -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
b8c62a0378
improve cookie parsing 2020-01-17 00:43:50 -05:00
Jethro Grassie
ed542aec9d
print options 2020-01-10 11:40:18 -05:00
Jethro Grassie
0335d92e28
update the docs 2020-01-09 02:11:30 -05:00
Jethro Grassie
e103d130fb
add missing title tag to web UI 2020-01-06 01:08:12 -05:00
Jethro Grassie
f774647632
allow disabling of the web UI altogether 2020-01-05 19:48:37 -05:00
Jethro Grassie
f987fd4aa9
fix log and return types for web ui 2020-01-05 19:42:25 -05:00
Jethro Grassie
9ba84a4a76
advertise SSL port (if configured) 2020-01-05 17:53:51 -05:00
Jethro Grassie
9a091921f1
fix empty cookies 2020-01-05 16:54:22 -05:00
Jethro Grassie
56df00634f
Merge branch 'remove-mhd' 2020-01-05 16:31:13 -05:00
Jethro Grassie
c97b0f1c37
update docs 2020-01-05 16:30:23 -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