SChernykh
eaed654012
Check for missing data from monerod on each new block
...
It helps in these cases:
- monerod was down/unavailable for a while and then restarted
- monerod was out of sync and then jumped several block heights ahead
2021-10-31 12:20:29 +01:00
SChernykh
113e39817d
Cleanup old Monero blocks data
2021-10-29 11:14:28 +02:00
SChernykh
da4686b88f
ZMQReader: start after initial RPC calls are finished
2021-10-28 20:05:40 +02:00
SChernykh
3d60ae8c32
Fix: don't start until monerod is fully synchronized
2021-10-28 18:47:28 +02:00
SChernykh
c0c210664a
Show uptime in status
2021-10-26 17:55:47 +02:00
SChernykh
60a8538e0c
P2PServer: show an error when there are no ZMQ messages
2021-10-09 11:01:26 +02:00
SChernykh
a0a31b0f3b
Merge pull request #51 from Tonux599/stratumServerJson-staging
...
API for stratum server statistics.
2021-10-04 11:16:37 +03:00
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
7d66864b01
Print P2Pool version
2021-10-02 17:06:48 +02:00
SChernykh
4bcaa41c8e
Clear crypto derivation/key cache when a block is found
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
5c92920619
Default log level 3
...
Also refactored default port numbers
2021-09-18 10:03:06 +02:00
SChernykh
4c5144b37f
Check monerod RPC version at startup
2021-09-13 18:27:47 +02:00
SChernykh
0d439e7712
SideChain: submit blocks to monerod in more cases
2021-09-13 10:16:45 +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
ee7a1e54f7
DNS name resolution for command line parameters
2021-09-08 20:25:39 +02:00
SChernykh
57bc38d2bb
data api: added stats_mod
2021-09-08 09:57:31 +02:00
SChernykh
899d5a82dd
data api: check p2pool shares that come after a Monero block
2021-09-06 23:33:52 +02:00
SChernykh
d3dc4c731f
Added more tests
2021-09-06 15:49: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
82a88ce0ef
data api: added block hashes to pool/blocks
2021-09-05 22:28:57 +02:00
SChernykh
b31adbd5ae
Added macOS build
2021-09-05 12:10:40 +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
b26c4616d7
Fixed wrong diff in api/network/stats
2021-09-02 23:39:47 +02:00
SChernykh
bab148fbad
Added cppcheck scripts
2021-09-02 12:35:36 +02:00
SChernykh
55f8e9dc33
Added total blocks found
2021-09-02 09:02:24 +02:00
SChernykh
e1b4649c2a
Added pool blocks
2021-09-01 17:35:54 +02:00
SChernykh
533cc202d2
Added pool stats
2021-09-01 16:28:05 +02:00
SChernykh
295cbda449
p2pool: export data to an external web-server
...
Dumps data to JSON files which can be later served by a web-server.
2021-09-01 14:11:28 +02:00
SChernykh
5d6fa03f11
Show all Monero block rewards in log
2021-09-01 10:43:10 +02:00
SChernykh
5eea610f3c
Stricter wallet address checks
2021-08-31 18:26:28 +02:00
SChernykh
4757cdb8e2
P2PServer: added 1 second grace time for stale shares
...
Only for shares that lag 1 Monero block behind
2021-08-31 09:58:57 +02:00
SChernykh
9120b86007
Fixed use of out of scope variable
2021-08-30 01:21:46 +02:00
SChernykh
519b4b548d
Relax JSON parsing
...
Allow comments and trailing commas
2021-08-29 08:39:17 +02:00
SChernykh
27c2aab145
Check network type at startup
...
- Make network type part of consensus ID to avoid mixing p2pool nodes from mainnet and testnet/stagenet
- Check that wallet address matches the network type of monerod
2021-08-27 11:25:25 +02:00
SChernykh
776b1f561c
Fixed use after free on p2pool shutdown
2021-08-27 10:13:33 +02:00
SChernykh
37f3312e1d
Submit received p2pool blocks to monerod when possible
2021-08-25 22:07:42 +02:00
SChernykh
0009eba307
Fix RandomX startup logic
...
Ensure that both RandomX caches initialize before stratum and p2p servers start.
2021-08-25 18:31:42 +02:00
SChernykh
a38a7be73f
p2pool: submit block from the main thread only
2021-08-25 12:45:14 +02:00
SChernykh
8f93adf7a1
Refactored signal handler
...
Call the same stop() function as regular exit command
2021-08-25 12:28:15 +02:00
SChernykh
d8efb27374
Restrict uv_default_loop() to main thread
2021-08-25 12:17:14 +02:00
SChernykh
90a977228b
Merge pull request #2 from hyc/cmds
...
Tweak command handling
2021-08-24 14:37:03 +03:00
Howard Chu
0dc3baa480
Tweak command handling
...
Modularize, add help and exit commands.
Fix shutdown_tcp() and p2pool to make sure servers exit immediately
when terminating.
2021-08-24 11:55:59 +01:00
SChernykh
bf5db3db08
Update p2pool.cpp
2021-08-24 12:01:43 +02:00
SChernykh
3229909333
Update p2pool.cpp
2021-08-24 11:59:59 +02:00
SChernykh
aba3bc50b8
Block cache WIP and other fixes
...
- Block cache is implemented only on Windows for now
- Tracking of background jobs
- More robust sidechain syncing
2021-08-24 11:42:41 +02:00
SChernykh
656f912a3e
Workaround for crashes on shutdown
2021-08-23 22:50:36 +02:00