jtgrassie / monero-pool

A Monero mining pool server written in C
BSD 3-Clause "New" or "Revised" License
344 stars 125 forks source link

Validation error: Low difficulty: 156086 #108

Closed trasherdk closed 2 years ago

trasherdk commented 2 years ago

While running xmrig 6.15.0 against monero-pool build on Sep 11, I get this:

stagenet

08:24:33 INFO  src/pool.c:3830: New miner [127.0.0.1:57270] connected
08:24:33 INFO  src/pool.c:3834: Pool accounts: 0, workers: 1, hashrate: 0
08:24:33 TRACE src/pool.c:3034: Miner login for mode: self-select
08:24:33 TRACE src/pool.c:3047: Miner set rigid: GHOST-M1
08:24:33 DEBUG src/pool.c:1161: Miner d63e01b4a3af49ad8a41ed357e256e16 target now: 1000
08:24:33 TRACE src/pool.c:1399: Miner job: {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"d63e01b4a3af49ad8a41ed357e256e16","job":{"job_id":"2fabc4d935494338b97c5d0cff0dbf65","target":"37894100","extra_nonce":"01000000ad8a9719", "pool_wallet":"55V8qFmyuNQ2fHpYBNzi8UdAh1TfZUyw7125jLR7TWsZDuZHGAa7PDGFJoApMA9C1gPMMjxmj4PdLLZ842kY9d6TJCqf9Mv","seed_hash":"","next_seed_hash":""},"status":"OK"}}

08:24:33 DEBUG src/pool.c:1357: [127.0.0.1:57270] Validation error: Low difficulty: 156086
08:24:39 DEBUG src/pool.c:1357: [127.0.0.1:57270] Validation error: Low difficulty: 156107
08:24:45 DEBUG src/pool.c:1357: [127.0.0.1:57270] Validation error: Low difficulty: 156107
08:24:50 DEBUG src/pool.c:1357: [127.0.0.1:57270] Validation error: Low difficulty: 156107
08:24:55 DEBUG src/pool.c:1357: [127.0.0.1:57270] Validation error: Low difficulty: 156107
08:25:01 DEBUG src/pool.c:1357: [127.0.0.1:57270] Validation error: Low difficulty: 156107

And that just keep going until restart.

trasherdk commented 2 years ago

The xmrig side of things

[2021-09-12 08:50:46.415]  cpu      accepted (284/14) diff 34711 (15 ms)
[2021-09-12 08:50:47.378]  cpu      accepted (285/14) diff 34711 (10 ms)
[2021-09-12 08:50:52.068]  cpu      accepted (286/14) diff 34711 (16 ms)
[2021-09-12 08:50:52.155] [localhost:38081] error: "Bad height delta: 12", code: -1
[2021-09-12 08:50:57.335] [localhost:38081] error: "Bad height delta: 12", code: -1
[2021-09-12 08:50:58.337]  miner    speed 10s/60s/15m 1068.7 1071.3 1068.4 H/s max 1102.0 H/s
[2021-09-12 08:51:02.341] [localhost:38081] error: "Bad height delta: 12", code: -1
[2021-09-12 08:51:08.346] [localhost:38081] error: "Bad height delta: 12", code: -1
[2021-09-12 08:51:14.352] [localhost:38081] error: "Bad height delta: 12", code: -1
[2021-09-12 08:51:24.535]  cpu      accepted (287/14) diff 34711 (20 ms)
[2021-09-12 08:51:26.361]  net      no active pools, stop mining
[2021-09-12 08:51:28.370]  miner    speed 10s/60s/15m 844.8 1035.9 1066.1 H/s max 1102.0 H/s

And monero-pool side

2021-09-12 08:50:47 TRACE src/pool.c:3357: Submission reserved values: 797649 9 0 0
2021-09-12 08:50:47 TRACE src/pool.c:3468: Checking hash against block difficulty: 157022, job difficulty: 34711
2021-09-12 08:50:47 DEBUG src/pool.c:3532: Storing share with difficulty: 34711
2021-09-12 08:50:52 TRACE src/pool.c:3285: Miner submitted nonce=890419, result=aafb0bdc3c4057431c8837fa04d45d6beb0dbe83478fa1a00fa6c348f5230000, host=127.0.0.1
:58368, address=58yYoyNvv5W2, rig_id=GHOST-M1
2021-09-12 08:50:52 TRACE src/pool.c:3357: Submission reserved values: 890419 9 0 0
2021-09-12 08:50:52 TRACE src/pool.c:3468: Checking hash against block difficulty: 157022, job difficulty: 34711
2021-09-12 08:50:52 INFO  src/pool.c:3479: +++ MINED A BLOCK +++ address=58yYoyNvv5W2, round=69422, diff=156155, height=919807
2021-09-12 08:50:52 DEBUG src/pool.c:3532: Storing share with difficulty: 34711
2021-09-12 08:50:52 DEBUG src/pool.c:3545: Sending an early job as this was less than 55% of potential
2021-09-12 08:50:52 TRACE src/pool.c:1078: Recycle job with extra_nonce: 6
2021-09-12 08:50:52 DEBUG src/pool.c:1161: Miner 3a69b63c52024c369ae7d1cb7104ec1a target now: 66938
2021-09-12 08:50:52 TRACE src/pool.c:1399: Miner job: {"jsonrpc":"2.0","method":"job","params":{"id":"3a69b63c52024c369ae7d1cb7104ec1a","job_id":"16360dc0929947
af9fc974a8924d63c6","target":"a3fa0000","extra_nonce":"0a0000001128301a", "pool_wallet":"55V8qFmyuNQ2fHpYBNzi8UdAh1TfZUyw7125jLR7TWsZDuZHGAa7PDGFJoApMA9C1gPMMjx
mj4PdLLZ842kY9d6TJCqf9Mv","seed_hash":"","next_seed_hash":""}}

2021-09-12 08:50:52 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:50:52 INFO  src/pool.c:2082: Block submitted at height: 919810
2021-09-12 08:50:57 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:02 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:08 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:14 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:20 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:24 TRACE src/pool.c:3285: Miner submitted nonce=839536, result=344869c1a2e5476158a8615ecf0e957ab03d0e7b26d41611fb6c0f566b110100, host=127.0.0.1
:58368, address=58yYoyNvv5W2, rig_id=GHOST-M1
2021-09-12 08:51:24 TRACE src/pool.c:3357: Submission reserved values: 839536 9 0 0
2021-09-12 08:51:24 TRACE src/pool.c:3468: Checking hash against block difficulty: 157022, job difficulty: 34711
2021-09-12 08:51:24 DEBUG src/pool.c:3532: Storing share with difficulty: 34711
2021-09-12 08:51:26 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:31 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:37 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:43 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
2021-09-12 08:51:48 DEBUG src/pool.c:1357: [127.0.0.1:58368] Validation error: Bad height delta: 12
jtgrassie commented 2 years ago

You're using self-select and using an old template:

Validation error: Bad height delta

OlMi1 commented 2 years ago

For everyone in the future: Height (-> Block height) describes the number of blocks. In this case, if I understand correctly, the pool blockchain was out of sync so invalid jobs were given to miners.