hemilabs / heminetwork

The hemi network core daemons.
MIT License
50 stars 23 forks source link

Add mechanism to recover from forks at runtime #232

Closed marcopeereboom closed 2 weeks ago

marcopeereboom commented 1 month ago

Summary During runtime we quiesce p2p when indexing to prevent index corruption. When tbc unquiesces several p2p commands may have happened, including a forking event, which wasn't tracked. When tbc tries to recover it may end up with a chain geometry it currently cannot process.

Changes