ChainReorganisationResolution
Documentation for eth_defi.event_reader.reorganisation_monitor.ChainReorganisationResolution Python class.
- class ChainReorganisationResolution[source]
How did we fare getting hashes and timestamps for the latest blocks.
Attributes summary
What we know is the chain tip on our node
What we know is the block for which we do not need to perform rollback
Did we detect any reorgs in this chycle
Methods summary
__init__
(last_live_block, ...)Get the range of blocks we should read on this poll cycle.
- last_live_block: int
What we know is the chain tip on our node
This is the latest block at the JSON-RPC node. We can read data up to this block.
- latest_block_with_good_data: int
What we know is the block for which we do not need to perform rollback
This is the block number that does not need to purged from your internal database. All previously read events that have higher block number should be purged.