SChernykh
14f667de74
Support dynamic PPLNS window in status
2023-01-13 17:43:56 +01:00
SChernykh
4f2ad9a93c
Optimized get_shares
2023-01-10 22:17:17 +01:00
SChernykh
47f551c046
Randomize output order for P2Pool payouts
2023-01-09 20:07:11 +01:00
SChernykh
ae6747c82d
Initialize tx key from previous blocks
2023-01-09 16:14:33 +01:00
SChernykh
11e4c459c9
pub/sec tx key cleanup
2023-01-09 01:15:06 +01:00
SChernykh
647319b731
Added missing check to update_chain_tip
2023-01-09 00:33:37 +01:00
SChernykh
632f3faac5
Refactored keccak interface
...
- Allow calculating keccak hash in steps
- Only allow 32 and 200 byte final hashes
2023-01-08 13:06:20 +01:00
SChernykh
4f34c4466a
Dynamic PPLNS window
2023-01-08 00:47:03 +01:00
SChernykh
ccc5117172
Track shares that failed to be added
2023-01-07 15:50:02 +01:00
SChernykh
b346b93285
Updated copyright
2023-01-04 13:07:55 +01:00
SChernykh
dffc8bcea0
Fixed cppcheck issues
2022-12-22 14:08:49 +01:00
SChernykh
e6d77a40e2
Check block major version in deserialize()
2022-12-19 10:29:29 +01:00
SChernykh
be18ad4177
Made payout messages more visible
2022-12-18 11:06:38 +01:00
SChernykh
9283677a2b
Sync test: log more data in the end
2022-11-24 11:06:18 +01:00
SChernykh
d4180a5084
Fixed Coverity issue
2022-11-24 08:43:13 +01:00
SChernykh
f1ff6a21ee
Revert "Broadcast uncle blocks at the same height"
...
This reverts commit 530079b8a5
.
2022-11-23 17:59:28 +01:00
SChernykh
530079b8a5
Broadcast uncle blocks at the same height
...
To reduce orphan block rate
2022-11-23 17:55:11 +01:00
SChernykh
79a31ce57c
SideChain: reduce lock scope in get_outputs_blob
2022-11-16 14:23:13 +01:00
SChernykh
488ed8e562
Added more 128 bit calculations
2022-11-16 10:36:46 +01:00
SChernykh
b3bce1651b
SideChain: use full 128 bits in get_difficulty
2022-11-15 16:39:39 +01:00
SChernykh
53ba29b288
Optimized crypto cache memory allocation
2022-11-13 17:30:47 +01:00
SChernykh
8a7f1b1b3a
Log shares found by other nodes
2022-11-10 08:22:31 +01:00
SChernykh
c135787620
Prepare compact blob for block broadcasts
...
Reference transactions by index in the parent block instead of storing full 32 bytes per transaction
2022-11-09 12:40:45 +01:00
SChernykh
1f7c89a95c
Fixed Coverity issues
2022-11-03 19:24:15 +01:00
SChernykh
45660e3d96
Show wallet address in error messages and status
2022-11-03 11:38:43 +01:00
SChernykh
255d312ae0
SideChain: log blocks with the same id
2022-11-02 12:49:12 +01:00
SChernykh
c029e5c39d
Added macro for debug builds
2022-10-13 11:21:40 +02:00
SChernykh
d8bb85a1d8
Fix: api didn't always save total hashes
2022-10-09 18:17:01 +02:00
SChernykh
077837054b
Optimized TxOutput struct
2022-10-04 21:03:56 +02:00
SChernykh
45674ef554
Better cache cleanup
2022-10-04 20:04:41 +02:00
SChernykh
eabf856dbd
Removed redundant m_sideChainData
2022-10-04 15:49:58 +02:00
SChernykh
32ea0f2cf6
Clear crypto cache more often
2022-10-04 14:37:55 +02:00
SChernykh
6a66615f37
Removed redundant m_mainChainData
2022-10-03 18:42:32 +02:00
SChernykh
bde5b19c77
CI: added sync test
2022-08-23 19:49:41 +02:00
SChernykh
d4e27a27cb
Tweaked SideChain::get_missing_blocks()
2022-08-17 16:44:40 +02:00
SChernykh
4c8dbee79d
More fine-grained locks in crypto cache
2022-08-15 18:39:28 +02:00
SChernykh
30861bbf91
Speedup SideChain::get_outputs_blob()
2022-08-15 13:48:21 +02:00
SChernykh
948436e57e
Fixed coverity issue
2022-08-05 15:27:39 +02:00
SChernykh
555414cd51
SideChain: improved precalculation coverage
2022-07-14 19:29:41 +02:00
SChernykh
c33033b2f4
Code cleanup
2022-07-14 14:28:06 +02:00
SChernykh
3c697c2d7e
Fixed potential deadlock
...
Can't lock `m_minerLock` inside SideChain update
2022-07-14 13:15:35 +02:00
SChernykh
0e7c1aa481
SideChain: stricter checks for number of threads
2022-07-14 11:39:19 +02:00
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