BorEventResponse was pulling double duty by being used for block number lookups as well as event lookups.
As a result, we were using EventsByBlock instead of EventLookup and interpreting the presence of the bor TX hash in kv.BorTxLookup by the absence of returned events.
This PR refactors the code so that remote calls to EventLookup use BlockReader.EventLookup, preventing any discrepancies between the two.
BorEventResponse
was pulling double duty by being used for block number lookups as well as event lookups.EventsByBlock
instead ofEventLookup
and interpreting the presence of the bor TX hash inkv.BorTxLookup
by the absence of returned events.EventLookup
useBlockReader.EventLookup
, preventing any discrepancies between the two.Depends on: https://github.com/erigontech/interfaces/pull/231