Closed viquezclaudio closed 1 year ago
Looking at the issue, from the logs it looks like a bad logic here. I think it should be:
this.chain_store.remove_chain_info(
&mut write_txn,
&block.0,
block.1.head.block_number(),
)
After the fix in #1888 the corrupted store panic is no longer observed, however, there is still "invalid history root" issues when reverting blocks, even when there are no tainted or malicious validators
During a replication test in the private testnet, one of the non-malicious validators panicked due to:
Oct 09 21:34:28 validator-3 nimiq-client[834121]: 2023-10-09T21:34:28.293515285Z ERROR panic | thread 'tokio-runtime-worker' panicked at 'Corrupted store: Block bc7758b2a44dce7a229f1db0c538fc7191659fad2f713e81403c059f903c1cfa referenced from index not found': blockchain/src/chain_store.rs:340
The scenario is as follows:
Before the panic happened, the block in question was tried to be applied in validator 3:
privtestnet_validator3.log
This block was rejected because it is invalid. However, some minutes later, panic is observed in Validator3 Full validator 3 logs are attached
The complete logs are located within the CC machine at: "privtestnet-logs-20230910-1"