ChainReorganisationResolution
Documentation for eth_defi.event_reader.reorganisation_monitor.ChainReorganisationResolution Python class.
- class ChainReorganisationResolution
Bases:
objectHow did we fare getting hashes and timestamps for the latest blocks.
Attributes summary
last_live_blocklatest_block_with_good_datareorg_detectedMethods summary
__init__(last_live_block, ...)Get the range of blocks we should read on this poll cycle.
- __init__(last_live_block, latest_block_with_good_data, reorg_detected)
- get_read_range()
Get the range of blocks we should read on this poll cycle.
This range may overlap your previous event read range.
You should discard any data that’s older than the start of the range
You should be prepared to read an event again