SChernykh
7d5ff13f75
Fixed cppcheck warnings
2022-07-14 11:23:56 +02:00
SChernykh
02a8a512dc
SideChain: precalculate tx pubkeys for faster sync
2022-07-14 10:28:25 +02:00
SChernykh
c5bd184bbc
P2PServer: don't deserialize the same block twice
2022-07-10 10:24:03 +02:00
SChernykh
deaf47155f
Miner: reset share counter when synchronized
2022-06-30 12:13:17 +02:00
SChernykh
7f1b849394
Fixed new cppcheck issues
2022-06-13 07:30:59 +02:00
SChernykh
09f46beeb4
SideChain: added more checks to is_longer_chain()
2022-06-03 17:28:46 +02:00
SChernykh
6ef34bb3f5
Enabled more compiler warnings
2022-06-01 16:13:18 +02:00
SChernykh
c203f6eb0a
Fixed a new cppcheck issue
2022-05-31 16:51:09 +02:00
SChernykh
111087d96a
Fixed block reward share calculation
2022-05-28 22:27:46 +02:00
SChernykh
cb147773b5
Updated cppcheck workflow on Linux
2022-05-26 21:19:01 +02:00
SChernykh
1cf13e142a
SideChain: fixed alternative chain detection
2022-05-16 15:59:48 +02:00
SChernykh
72d70eba16
SideChain: added "synchronized" log message
2022-05-16 01:48:37 +02:00
SChernykh
9579be5c7d
Optimized SideChain::miner_count()
2022-05-12 22:18:08 +02:00
SChernykh
bd88c04e9e
SideChain: mutex locks refactoring
2022-05-12 15:24:02 +02:00
SChernykh
3406cf78b4
Don't return stale chain tip to other peers
2022-05-11 15:07:54 +02:00
SChernykh
134f2d68a3
Fixed data races
2022-05-09 16:10:55 +02:00
SChernykh
2c70bf8616
View tags support
...
See http://github.com/monero-project/monero/pull/8061
2022-04-09 00:56:42 +02:00
SChernykh
7522111bb7
Fixed data races
2022-04-09 00:38:15 +02:00
SChernykh
afb52e4235
Check return value (Coverity fix)
2022-04-07 19:33:39 +02:00
SChernykh
a2afa29052
Updated copyright
2022-03-30 14:42:26 +02:00
SChernykh
8b27faad6d
BlockCache: fixed collisions of same height blocks
2022-03-24 16:03:12 +01:00
SChernykh
ef15c3b54f
Show sidechain ID in status
2022-03-23 14:17:40 +01:00
SChernykh
aada1bb5cc
Use chrono::steady_clock for internal timestamps
2022-03-23 11:30:38 +01:00
SChernykh
62b1690780
Added an option to disable RandomX for the build
2022-03-15 17:11:45 +01:00
SChernykh
cc6ce4a366
Reset stratum share counters after initial sync
2022-02-17 11:19:11 +01:00
SChernykh
8767ef9e19
Display payout amount when a block is found
2022-01-29 17:09:43 +01:00
SChernykh
89bcceb986
Added p2pool mini seed nodes and default port
2021-12-30 11:10:18 +01:00
SChernykh
f9def6cb73
Added "calc_pow" RPC support
2021-11-21 09:12:21 +01:00
SChernykh
64116643c2
Fixed block broadcasts
2021-11-01 19:36:11 +01:00
SChernykh
1e4c6ef5f4
Added block verification test
2021-11-01 18:53:34 +01:00
SChernykh
b56d027dd5
Include P2P peer list into miner count
2021-10-31 20:29:35 +01:00
SChernykh
981b161cc9
SideChain: faster processing of repeated broadcasts
2021-10-31 11:06:00 +01:00
SChernykh
f59e9171e8
SideChain: use a separate lock for m_seenBlocks
2021-10-31 10:26:13 +01:00
SChernykh
806e1ca0a3
SideChain: faster check for low-diff spam blocks
2021-10-29 11:39:15 +02:00
SChernykh
0869326f39
SideChain: count miners in the last 48 hours
2021-10-29 10:37:12 +02:00
SChernykh
75d62c0303
SideChain: cleanup m_seenBlocks when pruning old blocks
2021-10-29 10:34:53 +02:00
SChernykh
285560e120
Fixed possible sidechain split during RandomX epoch change
2021-10-16 09:57:13 +02: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
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
b35b4a9f76
Crypto: added cache for faster key derivation
2021-09-14 11:06:49 +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
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
a332ac7d26
P2PServer: load peers from DNS
2021-09-07 21:43:44 +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
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
dd0a35fb79
Show pool-side hashrate in status only when it's not zero
2021-09-05 15:56:50 +02:00
SChernykh
b17723f1e4
Removed unused code
2021-09-05 00:07:03 +02:00
SChernykh
661d596107
api: store difficulty and totalHashes for each block
2021-09-03 18:04:54 +02:00
SChernykh
fbdef7d058
Count all miners that were active in last 24 hours
2021-09-01 20:48:03 +02:00
SChernykh
73da71a2d3
Renamed next payout to block reward share
2021-09-01 16:34:10 +02:00
SChernykh
533cc202d2
Added pool stats
2021-09-01 16:28:05 +02:00
SChernykh
e44919c289
Changed pool name for the new test
2021-08-31 17:25:01 +02:00
SChernykh
780afd84a2
Added checks for tx keys
2021-08-31 17:23:20 +02:00
SChernykh
d1e94d6e1a
StartumServer: print average hashrate in status
2021-08-30 16:51:23 +02:00
SChernykh
519b4b548d
Relax JSON parsing
...
Allow comments and trailing commas
2021-08-29 08:39:17 +02:00
SChernykh
8e29abd906
Small fixes
2021-08-29 00:13:53 +02:00
SChernykh
8a26498b66
Tweaked log levels
2021-08-28 23:34:46 +02:00
SChernykh
8304d81961
Prepare for mainnet test
2021-08-27 11:30:03 +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
3ea71d51e5
Fixed crash on startup
2021-08-27 00:41:09 +02:00
SChernykh
37f3312e1d
Submit received p2pool blocks to monerod when possible
2021-08-25 22:07:42 +02:00
SChernykh
125815b502
Made print_status() thread-safe
2021-08-25 21:00:06 +02:00
SChernykh
63e442dffd
print_status: fixed next payout display
2021-08-25 18:52:09 +02:00
SChernykh
662865ad70
Reduced startup spam at log levels <= 5
2021-08-25 15:01:05 +02:00
SChernykh
336349e189
Show hashrate estimate in status
2021-08-25 11:13:38 +02:00
SChernykh
8f2493edfc
Log message fixes
2021-08-25 09:52:06 +02:00
SChernykh
a27577f735
Added log level 6 to reduce spam on level 5
...
Log level 5 is still default
2021-08-25 09:38:47 +02:00
SChernykh
e4be4c1a66
Fixed pruning logic
...
- Erase an element from m_blocksByHeight only if it's empty
- Remove blocks from unconnected alternative chains too when they get old enough (4xPPLNS window)
2021-08-24 18:34:28 +02:00
SChernykh
69533fd209
Store only fully verified blocks in the cache
2021-08-24 13:46:38 +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
86b31ea821
Reduce broadcast spam after initial sync
2021-08-24 00:27:48 +02:00
SChernykh
6d3cfa2c7a
Couple more sanity checks
2021-08-23 23:08:46 +02:00
SChernykh
510b7dbb85
Add files
2021-08-22 12:20:59 +02:00