Commit Graph

279 Commits

Author SHA1 Message Date
Jethro Grassie
3ac432305c
fix self-select required template parameter 2021-08-08 19:14:47 -04:00
Jethro Grassie
a7fb22f37e
disallow set template for non-self-select clients 2021-08-07 09:59:27 -04:00
Jethro Grassie
f03235aca5
Merge pull request #93 from gavinbarnard:grb/effort 2021-07-28 17:07:06 -04:00
gavinbarnard
e9f942f387 log: add addr, round hr, net dif, height to MINED 2021-07-26 23:54:53 +00:00
Jethro Grassie
29d9220af4
add hashrates to /workers 2021-07-14 00:34:08 -04:00
Jethro Grassie
68d5dd1359
add missing cast and MAX guard 2021-04-25 18:45:10 -04:00
Jethro Grassie
93e12c51b9
config: add NiceHash specific min/start diff
This augments the current miner requested min/start diff (`d=N`) in the
login password field.

The greater of: pool config start diff, pool config NiceHash diff or
miner requested start diff is always used as the min/start diff for a
NiceHash client.
2021-04-22 20:11:12 -04:00
Jethro Grassie
e3de2f091e
fix and improve #81
- buffer size (for systems with smaller thread stack)
 - terminating NULL in rig-id copy
 - rename functions/variables
 - reorder functions
 - minor formatting issues
2021-04-09 17:37:37 -04:00
Jethro Grassie
127b349080
Merge pull request #81 from gavinbarnard/rig_worker 2021-04-09 17:34:49 -04:00
gavinbarnard
25feeeb2cb stats: worker count and list 2021-04-06 01:19:44 +00:00
Jethro Grassie
d84eb8db8f
replace a strstr with strchr 2021-04-02 22:00:07 -04:00
Jethro Grassie
15ab65f256
stats: allow multiple cookies
Closes #80
2021-04-02 20:38:07 -04:00
Jethro Grassie
92ea3a8f1d
fix int/string
Closes #79 without introducing `strerror`.
2021-04-02 19:39:52 -04:00
Jethro Grassie
f1166d0ed0
config: trim keys/values
Reading of the config file a little more forgiving.
2021-03-27 00:05:10 -04:00
Jethro Grassie
01f4a1026a
Revert "Merge pull request #74 from moneromooo-monero/ka"
This reverts commit fe7b90e6d9, reversing
changes made to f9a6243d3b.
2021-03-20 04:41:29 -04:00
Jethro Grassie
fe7b90e6d9
Merge pull request #74 from moneromooo-monero/ka 2021-03-19 11:45:05 -04:00
Jethro Grassie
f9a6243d3b
Merge pull request #75 from moneromooo-monero/body 2021-03-19 11:36:04 -04:00
moneromooo-monero
f50bdd8c51
pool: fix failure to submit some blocks
At 64 bytes per tx hash, 8 kB can only fit ~128 txes
(ignoring overhead)

This might need increasing even more later
2021-03-19 15:09:50 +00:00
moneromooo-monero
04b49cd776
pool: fix keepalive
xmrig expects an array of extension strings, and won't send keepalive
packets if the right extension isn't present
2021-03-19 13:11:37 +00:00
Jethro Grassie
4431097b97
Merge pull request #71 2021-03-18 20:38:52 -04:00
moneromooo-monero
0167a1a8bf
allow binding to a different interface for pool and web ui 2021-03-18 20:37:19 -04:00
Jethro Grassie
db9a1a2105
Merge pull request #69 from moneromooo-monero/uf 2021-03-17 21:25:16 -04:00
Jethro Grassie
7ae33933a8
Merge pull request #70 from moneromooo-monero/sz 2021-03-17 21:23:22 -04:00
moneromooo-monero
73ef48fe37 pool: fix bad (but harmless in practice) strncpy limit in config read 2021-03-16 19:50:31 +00:00
moneromooo-monero
0f384680b1 pool: fix integer underflow on small chains 2021-03-16 19:40:35 +00:00
Jethro Grassie
ed4770acb3
add configurable listen backlog
For hosts that honor it, allows for overriding the listen backlog.
2021-03-14 23:33:27 -04:00
Jethro Grassie
92de56716b
disallow integrated payout addresses
Batched transfers (`transfer_split`) fail with transfers to multiple
integrated addresses so simply disallow them.
2021-03-06 17:16:10 -05:00
Jethro Grassie
943f6a0875
show more precision for config display at startup
Specifically for pool-fee and payout-threshold display.

Also some very minor code tidying.
2021-01-19 20:24:48 -05:00
Jethro Grassie
18524085a0
fix some bounded stack logic 2021-01-16 13:45:38 -05:00
Jethro Grassie
8936af00f5
sss: check difficulty delta 2021-01-13 19:14:44 -05:00
Jethro Grassie
61a4d30f93
enable worker supplied start/min diff
Use the login password field to supply a minimum diff for the worker.
Format as `d=N` where `N` is the minimum job diff desired.

If the parameter is missing or below the `pool-start-diff` config
parameter, defaults to `pool-start-diff`. Ignored on fixed diff pools.
2020-12-27 17:44:21 -05:00
Jethro Grassie
eb251bbb72
add option to delete old share data
Config option is days after which to cull or -1 for never.
2020-10-25 04:26:46 -04:00
Jethro Grassie
eeecc14064
only DB resize or perform payouts on one process 2020-10-24 03:47:31 -04:00
Jethro Grassie
32dbf432bb
fix unused assembly make dependency rule 2020-10-22 02:25:44 -04:00
Jethro Grassie
4d38ebbde6
make it easier to override compiler / linker flags 2020-10-12 01:50:37 -04:00
Jethro Grassie
ac3359fe47
make it easier to override g++ 2020-10-12 01:18:56 -04:00
Jethro Grassie
b1c473f903
add another bag optimization 2020-10-11 20:53:42 -04:00
Jethro Grassie
016a4468eb
improve speed of bag occupied check 2020-10-11 05:08:23 -04:00
Jethro Grassie
c3c3318b68
catch SIGTERM for clean exit 2020-10-11 02:09:37 -04:00
Jethro Grassie
08fa5c12fb
wait on DB resize whilst client(s) are being read
This catches a missed case of the trusted thread (i.e. downstream
client) reading.
2020-09-29 02:55:57 -04:00
Jethro Grassie
ff323609b9
fix hash item moved iteration 2020-09-24 17:04:28 -04:00
Jethro Grassie
e4b6d1ffa2
always zero initialize 2020-09-22 03:47:29 -04:00
Jethro Grassie
91acf3da77
add new Monero dependency for v0.17 2020-09-19 00:13:34 -04:00
Jethro Grassie
91e17d4c58
perform full check on bag elements 2020-09-17 21:32:02 -04:00
Jethro Grassie
b882424504
fix a small leak 2020-09-12 05:32:17 -04:00
Jethro Grassie
c94ea042b5
fix copyright
Set to the date the project was created and remove the end dates so I
don't have to update each year.
2020-09-06 16:32:20 -04:00
Jethro Grassie
5e875c0b25
drop the debug asserts 2020-09-06 00:54:26 -04:00
Jethro Grassie
1e0dc5da30
Merge branch 'multiprocess-mode' into master 2020-09-04 02:45:29 -04:00
Jethro Grassie
88b724799a
initial multiprocess implementation 2020-09-04 02:44:58 -04:00
Jethro Grassie
48bcb418b0
fix parsing client IP address 2020-09-03 05:37:28 -04:00