Commit graph

875 commits

Author SHA1 Message Date
SChernykh
bd6f68790e Faster Keccak code (BMI instructions) 2024-05-31 00:39:11 +02:00
SChernykh
33e1ebd3fe Calculate hashing blobs in parallel
Improved performance with high number of connected miners.
2024-05-30 16:53:32 +02:00
SChernykh
9a2cab4b5e Fixed a Coverity warning 2024-05-29 13:32:11 +02:00
SChernykh
70e889ebdb Fixed software version display 2024-05-29 10:47:03 +02:00
SChernykh
59b693d2f3 P2Pool version: add patch number 2024-05-28 22:41:37 +02:00
SChernykh
c96e7323cc Miner: fix displayed difficulty for found aux blocks 2024-05-24 18:32:03 +02:00
SChernykh
4acc9d09b8 JSON RPC API: added seed_hash
It is required to verify RandomX PoW
2024-05-24 17:05:50 +02:00
SChernykh
d0107ed148 Fixed block template generation
Mining with `--merge-mining` in the command line but with merge mining disabled was broken
2024-05-23 22:17:39 +02:00
SChernykh
23ba77ee4d Updated dependencies 2024-05-23 15:37:39 +02:00
SChernykh
b07e8813c6 Tari: call SubmitBlock RPC in background
to avoid stalling the main thread
2024-05-23 00:16:13 +02:00
SChernykh
406aa72112 Merge branch 'master' into merge-mining 2024-05-22 16:21:46 +02:00
SChernykh
9fd85942e0 Fixed cppcheck error 2024-05-22 16:18:40 +02:00
SChernykh
5e7d48e70c Fix: don't call update_block_template twice 2024-05-22 15:27:23 +02:00
SChernykh
2b7febf5d0 Fixed cppcheck error 2024-05-20 19:17:19 +02:00
SChernykh
710f6c2eb7 Submit merge mined blocks asynchronously 2024-05-20 15:22:03 +02:00
SChernykh
08384156e4 Better API name, added API descriptions 2024-05-16 18:10:04 +02:00
SChernykh
899a908409 Added hardfork code 2024-05-14 22:48:59 +02:00
SChernykh
21326c5103 Merkle trees: added get_position_from_path
Also double check against Monero's Merkle tree path code.
2024-05-14 19:37:38 +02:00
SChernykh
a25b5c9713 Tari: fixed pow_data generation 2024-05-11 18:58:53 +02:00
SChernykh
fe19402218 Tari: enabled submit block gRPC call 2024-05-10 20:01:10 +02:00
SChernykh
be1445d7b5 Added Merkle proof's path bitmap to JSON RPC API 2024-05-10 16:53:47 +02:00
SChernykh
f67009f133 Added path bitmap to get_merkle_proof 2024-05-10 15:34:30 +02:00
SChernykh
e986e5dc2e Tari: Added coinbase_merkle_proof to pow_data 2024-05-10 13:56:28 +02:00
SChernykh
d6364709ca Fixed cppcheck errors 2024-05-10 00:09:53 +02:00
SChernykh
e07d37ede8 Fixed overflow check 2024-05-09 21:55:30 +02:00
SChernykh
f270b979c8 Fix: use correct nonce value 2024-05-09 20:47:26 +02:00
SChernykh
fd953a0b26 Tari: serialize pow_data WIP 2024-05-09 20:35:41 +02:00
SChernykh
e8d800b433 Tari: submit block code WIP 2024-04-30 23:15:34 +02:00
SChernykh
a5f3e1e2ee Tari: fill in merge mining hash and difficulty 2024-04-29 21:59:44 +02:00
SChernykh
5f62069590 CI: cppcheck script fixes 2024-04-25 19:57:23 +02:00
SChernykh
4d04e9e2bd Merge branch 'master' into merge-mining 2024-04-25 15:10:06 +02:00
SChernykh
bbddf40590 Fixed cppcheck error 2024-04-25 14:48:34 +02:00
SChernykh
2085bb454b Tari: use GetNewBlockTemplateWithCoinbases API 2024-04-23 21:31:40 +02:00
SChernykh
313a099a4b Added missing newline 2024-04-23 18:59:04 +02:00
SChernykh
c3add767be Merge branch 'master' into merge-mining 2024-04-23 18:43:35 +02:00
SChernykh
6dd72dfcd5 Fixed a rare crash on shutdown 2024-04-23 18:40:15 +02:00
SChernykh
b3f562caab Added sanity checks for height and difficulty 2024-04-23 18:29:19 +02:00
SChernykh
a847baf331 Revert "Fixed include paths"
This reverts commit 1b0103c119.
2024-04-23 18:10:09 +02:00
SChernykh
1b0103c119 Fixed include paths 2024-04-11 20:41:20 +02:00
SChernykh
ad04fd13ae Merge branch 'master' into merge-mining 2024-04-03 11:40:30 +02:00
SChernykh
adf3f5df19 Use 500k starting difficulty for autodiff 2024-04-03 10:58:35 +02:00
SChernykh
52b7c4fb25 Merge branch 'master' into merge-mining 2024-03-07 18:42:45 +01:00
SChernykh
29d84e3bcf Fixed data race in tx mempool 2024-03-07 17:48:49 +01:00
SChernykh
d4a3bc0e20 Fixed cppcheck errors 2024-02-25 00:48:51 +01:00
SChernykh
45dabd8ddb Merge branch 'master' into merge-mining 2024-02-24 19:11:52 +01:00
SChernykh
e82fe8cdc1 Fixed cppcheck errors 2024-02-24 10:02:50 +01:00
SChernykh
58dc32dd97 Tari poll loop - bring two exit checks together 2024-02-19 10:10:51 +01:00
SChernykh
6f22dfca11 Fixed a deadlock on shutdown 2024-02-18 17:46:47 +01:00
SChernykh
785aaec4c3 Added Tari node polling 2024-02-18 00:06:07 +01:00
SChernykh
dbb21151b0 Tari: connect to a node and get unique_id 2024-02-15 17:47:05 +01:00
SChernykh
8eb5f86e9a Fixed cppcheck error 2024-02-12 09:45:02 +01:00
SChernykh
d28090f292 More CI fixes 2024-02-12 07:50:24 +01:00
SChernykh
6263c0bbda Fixed CI errors 2024-02-11 15:17:34 +01:00
SChernykh
0801d607a1 Added gRPC library 2024-02-10 23:38:22 +01:00
SChernykh
fdb2ab19ab Added Tari gRPC client stub 2024-02-06 21:04:19 +01:00
SChernykh
9b15e8179f Merge mining client interface 2024-02-05 20:34:48 +01:00
SChernykh
2660d9dd0f Merge branch 'master' into merge-mining 2024-02-04 00:20:14 +01:00
SChernykh
a92ca028b1 Exit early if command line is invalid 2024-02-04 00:19:37 +01:00
SChernykh
94496c3dde Merge branch 'master' into merge-mining 2024-01-31 20:01:13 +01:00
SChernykh
8a2a9a99a9 Fixed cppcheck error 2024-01-31 20:00:55 +01:00
SChernykh
e1f847bc20 Merge branch 'master' into merge-mining 2024-01-10 18:00:08 +01:00
SChernykh
ec15417fd2 More C++17 2024-01-05 14:36:35 +01:00
SChernykh
010bdda236 C++17 2024-01-04 16:56:52 +01:00
SChernykh
3797f017e9 p2pool v3.10 2024-01-04 09:29:53 +01:00
SChernykh
891f7f0a0e Updated copyright 2024-01-02 14:28:00 +01:00
SChernykh
f95d366881 Merge branch 'master' into merge-mining 2024-01-02 14:26:32 +01:00
SChernykh
1e1c3ad6e9 Updated copyright 2024-01-02 14:12:16 +01:00
SChernykh
1729b51868 Merge mining API: added a check for the result field 2023-12-26 20:28:30 +01:00
SChernykh
896eac6d8c Force debug checks 2023-12-25 20:34:18 +01:00
SChernykh
6eb83dc891 Cache find_aux_nonce to save CPU time 2023-12-25 15:53:01 +01:00
SChernykh
f98d2e652a Fixed cppcheck errors 2023-12-23 19:22:06 +01:00
SChernykh
c28021b5a4 Merge branch 'master' into merge-mining 2023-12-23 19:07:04 +01:00
SChernykh
bc36be1e58 Fixed block broadcast detection
Peers could ban each other erroneously for "not broadcasting blocks"
2023-12-23 19:06:18 +01:00
SChernykh
f7a2a6fe07 Fixed block broadcasts 2023-12-23 15:19:25 +01:00
SChernykh
df2a81d76d Fixed cppcheck errors 2023-12-23 11:22:03 +01:00
SChernykh
3c510598fa Better type checking for Merkle root hashes 2023-12-23 10:17:49 +01:00
SChernykh
ae233bbf0b Fixed BLOCK_FOUND detection 2023-12-22 11:50:08 +01:00
SChernykh
18e5e6ab0f Merge branch 'master' into merge-mining 2023-12-11 17:30:32 +01:00
SChernykh
c61ca959b2 Sync test: run until fully synced
Old shortcut is not needed anymore
2023-12-11 11:04:22 +01:00
SChernykh
9015106ca2 Fixed a potential deadlock 2023-12-10 20:11:10 +01:00
SChernykh
658d756120 Fixed Merkle proof generation for aux chains 2023-12-10 19:24:05 +01:00
SChernykh
38417b0fd5 Fixed BlockTemplate::get_block_template_blob
submit_block was broken because of it
2023-12-10 17:11:11 +01:00
SChernykh
4362ee490c Multiple bugfixes 2023-12-10 15:40:05 +01:00
SChernykh
9ad9821e2a Fix: set timestamp for locally found blocks 2023-12-10 00:41:49 +01:00
SChernykh
1f57e4f701 Reduced min difficulty for testing 2023-12-09 23:19:39 +01:00
SChernykh
e20c73fa27 Merge branch 'master' into merge-mining 2023-12-08 14:18:22 +01:00
SChernykh
2e3d042d60 Fixed cppcheck error 2023-12-08 09:38:22 +01:00
SChernykh
a8582b2a0f p2pool v3.9 2023-11-26 16:17:46 +01:00
SChernykh
6a7bbfabcd Merge branch 'master' into merge-mining 2023-11-26 10:49:43 +01:00
SChernykh
8493dbc47b Fixed cppcheck errors 2023-11-26 09:52:24 +01:00
SChernykh
1bf594d9e2 Refactored keccak interface 2023-11-24 14:20:11 +01:00
SChernykh
65d83aa09c More tests 2023-11-23 14:02:00 +01:00
SChernykh
13087dd45e Submit found aux blocks 2023-11-20 22:22:37 +01:00
SChernykh
d697d0017e Submit the aux block when the difficulty is met (WIP) 2023-11-20 00:56:48 +01:00
SChernykh
7e0b958207 Propagate aux difficulty to miners 2023-11-19 19:48:23 +01:00
SChernykh
394b4f310e Sync test fixes 2023-11-17 19:50:55 +01:00
SChernykh
5aff5f5796 Sync test: added merge mining 2023-11-17 19:36:21 +01:00
SChernykh
d1fee33482 Added a fake merge mining node 2023-11-15 18:51:32 +01:00
SChernykh
e6b8292d5b Added command line for merge mining
Start a merge mining client for each of the aux chains
2023-11-10 16:17:34 +01:00
SChernykh
abd9c80e4d Merge branch 'master' into merge-mining 2023-11-07 16:52:57 +01:00