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.
2021-10-03 22:32:13 +01:00
SChernykh
2a3cd13b19
P2PServer: delete old cached blocks after initial sync
...
Saves ~20 MB of memory
2021-10-01 15:31:47 +02:00
SChernykh
4bcaa41c8e
Clear crypto derivation/key cache when a block is found
2021-09-27 13:47:27 +02:00
SChernykh
4fce76576f
ZMQ reader: abort if connect to monerod failed
2021-09-27 13:47:27 +02:00
SChernykh
f05f7c4268
Fixed wrong nonce values in submit_block error log
2021-09-26 16:50:24 +02:00
SChernykh
ae8733c187
Update RandomX
2021-09-22 17:59:58 +02:00
SChernykh
5c92920619
Default log level 3
...
Also refactored default port numbers
2021-09-18 10:03:06 +02:00
SChernykh
b4ea125a8a
Hardcode default consensus ID for faster startup
2021-09-16 14:23:14 +02:00
SChernykh
8aa9e54dc4
BlockTemplate: wait for 10 seconds before including new transactions
2021-09-14 12:54:42 +02:00
SChernykh
b35b4a9f76
Crypto: added cache for faster key derivation
2021-09-14 11:06:49 +02:00
SChernykh
ba6a2c8eb2
P2PServer: relax stale block restriction
2021-09-13 19:25:12 +02:00
SChernykh
14e26f5c17
Fix: always check before closing TCP handles
2021-09-13 19:11:59 +02:00
SChernykh
4c5144b37f
Check monerod RPC version at startup
2021-09-13 18:27:47 +02:00
SChernykh
42dd58d778
P2PServer: check broadcasts for wrong height
2021-09-13 15:48:05 +02:00
SChernykh
da0f376bef
P2PServer: ban peers that don't broadcast blocks
2021-09-13 15:01:02 +02:00
SChernykh
0d439e7712
SideChain: submit blocks to monerod in more cases
2021-09-13 10:16:45 +02:00
SChernykh
b8f04ac787
Tweaked block broadcast rules
2021-09-11 23:44:09 +02:00
WeebDataHoarder
7bad1e05a4
Implemented shares/uncles position chart on status command
...
Shows progress in slices of PPNLS window. Shares move left to right as they age.
A dot "." indicates no shares, 1-9 for that number in shares, for 9+ it shows a "+".
Will not show shares or uncles lines unless you have one on window.
2021-09-10 16:59:15 +02:00
SChernykh
74096248e1
Better error handling of Monero RPC requests
2021-09-10 16:18:16 +02:00
SChernykh
36ee76d4d2
data api: fixed one block missing to calculate effort
2021-09-10 08:18:38 +02:00
SChernykh
3aa270a072
Fix for older compilers
2021-09-09 11:44:40 +02:00
SChernykh
7a97171b03
Tweaked block broadcast rules
2021-09-08 20:57:22 +02:00
SChernykh
52f195b89f
Tweaked idle peer detection
2021-09-08 20:36:21 +02:00
SChernykh
ee7a1e54f7
DNS name resolution for command line parameters
2021-09-08 20:25:39 +02:00
SChernykh
c8a2a256e7
Fixed RandomX VM initialization
2021-09-08 11:49:54 +02:00
SChernykh
57bc38d2bb
data api: added stats_mod
2021-09-08 09:57:31 +02:00
SChernykh
a332ac7d26
P2PServer: load peers from DNS
2021-09-07 21:43:44 +02:00
SChernykh
7ea1913a9d
Update log.h
2021-09-07 14:14:11 +02:00
SChernykh
73c8b1294a
P2PServer: connect to peers from the event loop thread
...
Better thread safety
2021-09-07 12:56:22 +02:00
SChernykh
ce8ec3860d
Fixed memory leak
2021-09-07 10:22:58 +02:00
SChernykh
25772abc0f
Show block share % in status
2021-09-07 09:53:38 +02:00
SChernykh
899d5a82dd
data api: check p2pool shares that come after a Monero block
2021-09-06 23:33:52 +02:00
SChernykh
7b0cc256c5
P2PServer: ban peers that disconnect without finishing handshake
2021-09-06 16:17:20 +02:00
SChernykh
d3dc4c731f
Added more tests
2021-09-06 15:49:39 +02:00
SChernykh
e264377f0e
Added more checks
2021-09-06 09:17:39 +02:00
SChernykh
a36825424b
Fixed some Coverity reports
2021-09-06 09:02:35 +02:00
SChernykh
2ecd935bc5
data api: fixed saving of p2pool.blocks
2021-09-05 23:05:36 +02:00
SChernykh
f3b6423d4c
Log difficulty for found pool shares
2021-09-05 22:57:36 +02:00
SChernykh
82a88ce0ef
data api: added block hashes to pool/blocks
2021-09-05 22:28:57 +02:00
SChernykh
884d0f180a
TCP server: log IP addresses in more places
2021-09-05 20:21:33 +02:00
SChernykh
f3ee444aed
Stratum server: log IP addresses that send bad data
2021-09-05 19:16:23 +02:00
SChernykh
dd0a35fb79
Show pool-side hashrate in status only when it's not zero
2021-09-05 15:56:50 +02:00
SChernykh
4deef2f807
Added cppcheck workflow
2021-09-05 12:53:40 +02:00
SChernykh
b31adbd5ae
Added macOS build
2021-09-05 12:10:40 +02:00
SChernykh
e527b0c660
Added Windows builds
2021-09-05 11:28:24 +02:00
SChernykh
b17723f1e4
Removed unused code
2021-09-05 00:07:03 +02:00
SChernykh
1554a44f5c
Added more integrity checks
2021-09-04 09:10:44 +02:00
SChernykh
08d2fbdbd1
Parse full 128-bit difficulty from monerod
2021-09-03 22:45:55 +02:00
SChernykh
661d596107
api: store difficulty and totalHashes for each block
2021-09-03 18:04:54 +02:00
SChernykh
2d8530798d
Unit tests for difficulty_type
2021-09-03 11:32:11 +02:00