Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETC Mainnet only bad blocks #6196

Closed
naterland opened this issue Nov 21, 2023 · 15 comments
Closed

ETC Mainnet only bad blocks #6196

naterland opened this issue Nov 21, 2023 · 15 comments
Labels
ETC Ethereum Classic mining non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT

Comments

@naterland
Copy link

naterland commented Nov 21, 2023

ETC Mainnet only finding bad blocks. What is needed of me so this issue can be researched? Error message received is as follows:
2023-11-22 00:20:57.913+00:00 | EthScheduler-Workers-0 | INFO | ProofOfWorkValidationRule | Invalid block header: the EthHash result 0x123e96ac9021ffa91b0cd1c255914615d5038b2929ba831e13ceed7e8bf04cbf was greater than the target 0x00000000000023a608bb4a774d24c80724463de03b398d5fe5e3a7995f245c80.
Failing header:
BlockHeader{hash=0x9c1e3da54eac2ab30d1674b8869f7092e3f59cb5a2b986c921bce7cdf8802c9f, parentHash=0xf9f0fc1b6240bf59c4a5e8c934f0a7706c8e6006df0d274e7a1116aab7edc69d, ommersHash=0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347, coinbase=0xa6e43e5d497ce1f4d28b4270630e97308eda8b3e, stateRoot=0x7e653d53c7b641f24b0a919d7743a893692cd3dd426462928dc63cba80295f08, transactionsRoot=0x9ff97b51d319a934ec4b7084f8c076b059e0885bdd8c1c03b7d89d9af2d53a5a, receiptsRoot=0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421, logsBloom=0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, difficulty=0x00000000000000000000000000000000000000000000000000072e6403404c05, number=18765045, gasLimit=8007811, gasUsed=43835, timestamp=1700612447, extraData=0x457468436c617373696350504c4e532f326d696e6572735f455534, baseFee=null, mixHashOrPrevRandao=0x7add98a1f172c84f2b89a1c04e082b0e3670d6d3651c7c379d52d5a3debfd805, nonce=465696622907535877, }
2023-11-22 00:20:57.913+00:00 | EthScheduler-Workers-0 | WARN | BlockPropagationManager | Added to bad block manager for invalid header, failed to import announced block 18765045 (0x9c1e3da54eac2ab30d1674b8869f7092e3f59cb5a2b986c921bce7cdf8802c9f)

SYNC & HASHING SEEMS FINE:

2023-11-22 01:47:31.269+00:00 | EthScheduler-Services-5 (importBlock) | INFO | FullImportBlockStep | Import reached block 18765400 (0x48c7e9570759f3416fa368be942a133353c0b8df312f0b3dd14fe4725099b7d1), - Mg/s, Peers: 1
2023-11-22 01:47:31.373+00:00 | EthScheduler-Services-5 (importBlock) | INFO | PoWMiningCoordinator | Resuming mining operations
2023-11-22 01:47:34.144+00:00 | vert.x-eventloop-thread-3 | INFO | PoWMiningCoordinator | Hashrate submitted id 1b0924795b22812f7b26bb4d5c71edb57c7627d32c7c7f0039f0ab7e1b3bdde5 hashrate 350000000
2023-11-22 01:47:34.746+00:00 | vert.x-eventloop-thread-3 | INFO | PoWMiningCoordinator | Hashrate submitted id 375346bf08ad449128b17eaf09fcb1162a00eb355a074262677b6ee048c6a147 hashrate 280000000
2023-11-22 01:47:37.488+00:00 | vert.x-eventloop-thread-3 | INFO | PoWMiningCoordinator | Hashrate submitted id 3d6001065c369f927c3ad9b01c3f13cf7d8a46360c4ddf396d9911a07b0d3e1e hashrate 280000000
2023-11-22 01:47:39.227+00:00 | vert.x-eventloop-thread-3 | INFO | PoWMiningCoordinator | Hashrate submitted id 4a5be4854bbc39846bc073a37934a0205a7fd287493f316c2a8a63d30bd5963b hashrate 280000000
2023-11-22 01:47:46.742+00:00 | vert.x-eventloop-thread-3 | INFO | PoWMiningCoordinator | Hashrate submitted id 30c552bc2372f73102303907637b6b6e037fa58c3385fcba40fa293822455b9f hashrate 350000000
2023-11-22 01:47:46.833+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,765,423 / 3 tx / 0 om / 108,670 (1.4%) gas / (0xbfd9a339fc7160d55b9c41b8ecd75de4c7f21d06cbac893ee651df02c0e98187) in 0.030s. Peers: 1
2023-11-22 01:47:51.362+00:00 | vert.x-eventloop-thread-3 | INFO | PoWMiningCoordinator | Hashrate submitted id 330e3ed874770814147b423275c6749915caaeb745d105e55345326373496c81 hashrate 150000000
2023-11-22 01:47:51.648+00:00 | vert.x-eventloop-thread-3 | INFO | PoWMiningCoordinator | Hashrate submitted id 280d0602296d5b01497195206975cf3e76e9fbbc26f052e9083b8550283fbf6f hashrate 350000000

@macfarla
Copy link
Contributor

@diega any input on this one?

@macfarla macfarla added ETC Ethereum Classic non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT labels Nov 22, 2023
@macfarla
Copy link
Contributor

what version are you running @naterland - is this recent PR a clue? #6078

@naterland
Copy link
Author

naterland commented Nov 22, 2023

@macfarla besu-23.10.2 thanks for looking into this.

@diega
Copy link
Contributor

diega commented Nov 22, 2023

@macfarla thank you for the heads up. No, #6078 shouldn't be related to this b/c the upgrade isn't active on mainnet yet.
@naterland could you share the command line that you're using for running your instance? also, if possible, would you be able to retrieve the peer that you are connected to?. You need to have json-rpc and the admin module enabled, if you have that u can request the list with

$  curl -s --location -H 'Content-Type:application/json' --request POST 'http://localhost:8545' --data-raw '{"jsonrpc": "2.0", "method": "admin_peers", "params": [], "id": 1}'

@diega
Copy link
Contributor

diega commented Nov 22, 2023

My local node and all others that I maintain are all still on sync. @naterland what's your use case? are you using Besu to retrieve works to mine?

@naterland
Copy link
Author

@macfarla thank you for the heads up. No, #6078 shouldn't be related to this b/c the upgrade isn't active on mainnet yet. @naterland could you share the command line that you're using for running your instance? also, if possible, would you be able to retrieve the peer that you are connected to?. You need to have json-rpc and the admin module enabled, if you have that u can request the list with

$  curl -s --location -H 'Content-Type:application/json' --request POST 'http://localhost:8545' --data-raw '{"jsonrpc": "2.0", "method": "admin_peers", "params": [], "id": 1}'

Hi @diega the startup command I am using is as follows:
./besu --network=classic --sync-mode=X_SNAP --data-storage-format=BONSAI --rpc-http-enabled --rpc-ws-enabled --rpc-http-api=ETH,MINER --miner-enabled=true --miner-stratum-enabled=true --miner-coinbase=0xc4934ec95b604691f4c46692f629e3fead9acaf0 --miner-stratum-host=192.168.0.15 --miner-stratum-port=8008

It only showed one peer due to a reset. I am connected to 25 peers (but stopped mining):
2023-11-22 12:57:06.199+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,768,415 / 6 tx / 0 om / 177,002 (2.2%) gas / (0xeda0b76f0834987b54b51efce88fe050d133430bf34a2fd4df29cc82923650bd) in 0.029s. Peers: 25
2023-11-22 12:57:24.672+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,768,416 / 4 tx / 0 om / 162,133 (2.0%) gas / (0xf068d617087785c13ba200782f7b983f097cd44302b52502d61e5bfc9cf16ca7) in 0.008s. Peers: 25
2023-11-22 12:57:56.361+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,768,417 / 6 tx / 0 om / 148,835 (1.9%) gas / (0x23aea8b02cc4f454447d4371ddff859b24eb4cc578faef3ede6d93f3f9c6eef6) in 0.010s. Peers: 25
2023-11-22 12:58:10.066+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,768,418 / 4 tx / 0 om / 195,896 (2.4%) gas / (0xfb57fca3cb572b188d651b5037e8fccaecfce66ae72523ec9c9725f314ea8d15) in 0.032s. Peers: 25
2023-11-22 12:59:00.282+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,768,419 / 0 tx / 0 om / 0 (0.0%) gas / (0x02c299414522b7666da2d95e5da343e266b0671a7d48235dc834c5d01c9d7e1a) in 0.001s. Peers: 25
2023-11-22 12:59:06.406+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,768,420 / 0 tx / 0 om / 0 (0.0%) gas / (0xfe7cfc82e06208df459545b80887c34d834ee9a62741c39e6dbd1c286fdc6ce8) in 0.001s. Peers: 25
2023-11-22 12:59:13.152+00:00 | EthScheduler-Workers-0 | INFO | PersistBlockTask | Imported #18,768,421 / 0 tx / 0 om / 0 (0.0%) gas / (0xa97b49d4802a1321f6b8c3ff195983f6d0fc6de602d382f711a735c19cfc66fa) in 0.001s. Peers: 25

@naterland
Copy link
Author

My local node and all others that I maintain are all still on sync. @naterland what's your use case? are you using Besu to retrieve works to mine?
Hi @diega Yes, I am running a node for mining ETC. Thank you for looking into this!

@naterland
Copy link
Author

My local node and all others that I maintain are all still on sync. @naterland what's your use case? are you using Besu to retrieve works to mine?
Hi @diega Yes, I am running a node for mining ETC. Thank you for looking into this!

I should also note I am connecting iPollo (successfully mining) and Jasminer (unable to connect) ASIC miners.

@diega
Copy link
Contributor

diega commented Nov 22, 2023

@naterland when you say that the iPollo is successfully mining do you mean that the miner is sealing blocks but those are invalid?

@naterland
Copy link
Author

@diega Yes, Sir. That is correct.

@naterland
Copy link
Author

Greetings @diega Just checking in to see if your team has an update on this. I scrapped Linux and got a node running on Windows 11. Still getting the same error.

←[m←[2m2023-12-01 19:38:52.123-05:00←[m←[2m | ←[m←[2mEthScheduler-Workers-0←[m←[2m | ←[m←[32mINFO ←[m←[2m | ←[m←[2mBlockPropagationManager←[m←[2m | ←[m←[32mImported 1 pending blocks: [18829693]
←[m←[2m2023-12-01 19:38:53.588-05:00←[m←[2m | ←[m←[2mvert.x-eventloop-thread-1←[m←[2m | ←[m←[32mINFO ←[m←[2m | ←[m←[2mPoWMiningCoordinator←[m←[2m | ←[m←[32mHashrate submitted id 2b28d97738bed6e868c52e1508c968346a149a9b58d3f9803a1f2be71b6a5e4e hashrate 280000000
←[m←[2m2023-12-01 19:38:54.354-05:00←[m←[2m | ←[m←[2mvert.x-eventloop-thread-1←[m←[2m | ←[m←[32mINFO ←[m←[2m | ←[m←[2mPoWMiningCoordinator←[m←[2m | ←[m←[32mHashrate submitted id 47453d71261367c004d0a99624d4e3b50620161c74df7501562aa7683775d9cf hashrate 280000000
←[m←[2m2023-12-01 19:38:54.589-05:00←[m←[2m | ←[m←[2mEthScheduler-Workers-0←[m←[2m | ←[m←[32mINFO ←[m←[2m | ←[m←[2mPersistBlockTask←[m←[2m | ←[m←[32mImported #18,829,694 / 0 tx / 0 om / 0 (0.0%) gas / (0x95063dc050ac57b0ece249ad817c634c3584423c47b088ec5d26dd7d79e6a3bc) in 0.001s. Peers: 21
←[m←[2m2023-12-01 19:39:02.755-05:00←[m←[2m | ←[m←[2mvert.x-eventloop-thread-1←[m←[2m | ←[m←[32mINFO ←[m←[2m | ←[m←[2mPoWMiningCoordinator←[m←[2m | ←[m←[32mHashrate submitted id 597ca8b7270a31eb470e6c0928599e70485dd88f78642fbc59af622367238ea1 hashrate 150000000
←[m←[2m2023-12-01 19:39:05.762-05:00←[m←[2m | ←[m←[2mEthScheduler-Workers-0←[m←[2m | ←[m←[32mINFO ←[m←[2m | ←[m←[2mPersistBlockTask←[m←[2m | ←[m←[32mImported #18,829,695 / 1 tx / 0 om / 21,000 (0.3%) gas / (0x3eef9bef3d6e0914d23a7baa6dfb12ba63b42f620d9c0d5620e329dbc2673ca8) in 0.003s. Peers: 21
←[m←[2m2023-12-01 19:39:11.635-05:00←[m←[2m | ←[m←[2mEthScheduler-Workers-0←[m←[2m | ←[m←[32mINFO ←[m←[2m | ←[m←[2mProofOfWorkValidationRule←[m←[2m | ←[m←[32mInvalid block header: the EthHash result 0xc04aa91337b56184ce643fb10bcd93774760547706b1a8eb7c9b527ad6b17566 was greater than the target 0x000000000000240a190c52e98b893735efa38241075689d9a2e6ce13b277b9b4.
Failing header:
BlockHeader{hash=0xb3b3d3e486cef850c56e8925e361d845367900d7bff3f38de3dc62aba9639a3e, parentHash=0x3eef9bef3d6e0914d23a7baa6dfb12ba63b42f620d9c0d5620e329dbc2673ca8, ommersHash=0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347, coinbase=0x6d5f58ee658e9ed844cb42337b1567d120d8c58a, stateRoot=0xeb67a55be8ef4c8fe2e4944ed0c85b9ed915953bb14575797ea39f8f7b6bb659, transactionsRoot=0x62b1ceb626c5b3a01b341a9f24a88620d0c9b06f9b973d3fcc87e1f9038dcdc9, receiptsRoot=0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421, logsBloom=0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, difficulty=0x00000000000000000000000000000000000000000000000000071a73b5b952c1, number=18829696, gasLimit=8007811, gasUsed=22312, timestamp=1701477543, extraData=0xb12b299d, baseFee=null, mixHashOrPrevRandao=0xd6d3949b5d1e5af659f159e343b50993a7d5020354f128ef8d389be80faea9a3, nonce=1778128410896689, }
←[m←[2m2023-12-01 19:39:11.635-05:00←[m←[2m | ←[m←[2mEthScheduler-Workers-0←[m←[2m | ←[m←[33mWARN ←[m←[2m | ←[m←[2mBlockPropagationManager←[m←[2m | ←[m←[33mAdded to bad block manager for invalid header, failed to import announced block 18829696 (0xb3b3d3e486cef850c56e8925e361d845367900d7bff3f38de3dc62aba9639a3e)

@diega
Copy link
Contributor

diega commented Dec 4, 2023

Hello @naterland, I haven't dive into this yet. I'll try to take a look at it tomorrow. In the meanwhile, is there something preventing you to use core-geth for mining?

@naterland
Copy link
Author

Hey @diega nothing preventing me at all. Was just trying to explore the Besu option. I’ll look into core-geth. Thanks!

@diega
Copy link
Contributor

diega commented Dec 5, 2023

@naterland great, I just wanted to know to not disrupt your mining operation. I'll keep you posted about this

@macfarla macfarla added the mining label Dec 6, 2024
@macfarla
Copy link
Contributor

macfarla commented Dec 6, 2024

PoW is now deprecated so we won't be adding features to it

@macfarla macfarla closed this as completed Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ETC Ethereum Classic mining non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT
Projects
None yet
Development

No branches or pull requests

3 participants