SChernykh
451778d704
Optimized RNG usage
1 year ago
SChernykh
ccc5117172
Track shares that failed to be added
1 year ago
SChernykh
b346b93285
Updated copyright
1 year ago
SChernykh
2e747beda6
Added sidechain height to SHARE FOUND log
2 years ago
SChernykh
a917a9493c
Randomize extra_nonce
...
To guarantee that hashing blobs will be different between different p2pool nodes, even if they mine to the same wallet address and don't have transactions to shuffle within the block template.
2 years ago
SChernykh
fd6b2360aa
Fix: uv_close was called from wrong thread
2 years ago
SChernykh
86156f3fec
SOCKS5 proxy support
2 years ago
SChernykh
cc60ab3d63
StratumServer: added scoring system for clients
...
Ban clients only after a few bad shares without good shares compensating them.
2 years ago
SChernykh
990916ab62
StratumServer: added autodiff
...
Autodiff is enabled by default, target time is 30 seconds. It can be disabled with `--no-autodiff` command line option.
2 years ago
SChernykh
d4e362cd76
TCPServer: optimized Client struct size
2 years ago
SChernykh
1dd06cc509
Removed std::string to avoid memory allocation
2 years ago
SChernykh
0818d91f4f
StratumServer: added console command `workers`
2 years ago
SChernykh
a2afa29052
Updated copyright
2 years ago
SChernykh
aada1bb5cc
Use chrono::steady_clock for internal timestamps
2 years ago
SChernykh
c21d052d7a
Refactored RNG usage across the code
2 years ago
SChernykh
cc6ce4a366
Reset stratum share counters after initial sync
2 years ago
SChernykh
9f449320b5
StartumServer: disconnect and ban inactive clients
2 years ago
WeebDataHoarder
bc341918f6
Decode custom user from stratum client, display stratum client+user on SHARE FOUND and client mainchain found message
3 years ago
SChernykh
9e90e988fa
Refactored array_size to make it always constexpr
3 years ago
SChernykh
f3024d3556
StratumServer: submit Monero block as soon as possible
...
1-3 ms saved when a block is found
3 years ago
SChernykh
c9faa92098
StratumServer: fixed "bad share" ban logic
3 years ago
SChernykh
52e5008bf4
Refactoring
...
- Skip calling time(nullptr) twice
- Use getter method for m_api instead of exposing it
- Moved api_udate_*() back to private since they're not used anywhere else
3 years ago
Thomas Clarke
7742d163f7
API for stratum server statistics.
...
Users can pass `--stratum-api` to command line to enable a file called `local/stats` in `--data-api` directory. `local/stats` contains statistics that `StratumServer status` provides but in JSON format. It is currently setup that `local/stats` is updated each time a new job is sent to a worker.
3 years ago
SChernykh
5c92920619
Default log level 3
...
Also refactored default port numbers
3 years ago
SChernykh
bb8ff24db8
StratumServer: added avg effort and number of shares to status
3 years ago
SChernykh
4ac08ac10d
StratumServer: print current effort in status
3 years ago
SChernykh
891ee36e53
Force update average hashrates when print_status() is called
3 years ago
SChernykh
d1e94d6e1a
StartumServer: print average hashrate in status
3 years ago
SChernykh
9e438210d1
StratumServer: support custom fixed difficulty
...
Example (set fixed difficulty 10000)
`"user":"x+10000"` in config.json or
`-u x+10000` in command line
3 years ago
SChernykh
510b7dbb85
Add files
3 years ago