codex-storage / nim-codex

Decentralized Durability Engine
Apache License 2.0
62 stars 23 forks source link

Blockchain reorgs handling #804

Open AuHau opened 4 months ago

AuHau commented 4 months ago

Let's research a bit the current state of blockchain reorgs on the Ethereum Beacon chain and L2s. Should we enforce a higher number of confirmations or use some other reorg detection mitigation?

emizzle commented 1 month ago

We probably want to consider checking if a block is finalised. This could be a change in nim-ethers that supports finalised block tags, as well as waiting for the block to be finalised. Here's an example on how to do it: https://ethereum.stackexchange.com/questions/136437/how-to-find-if-a-block-is-finalized