You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if EthereumRegistryWriter is restarted after an addCid transaction has been sent to geth but before the associated cidAdded event is picked up, that event will never be picked up, since EthereumRegistryWriter always starts listening to cidAdded events from the latest block geth has seen.
This can be solved by indexing onCidAdded.blockNumber in the db, pick up the highest onCidAdded.blockNumber on startup and passing that to fromBlock.
constfromBlock=awaitdb.// some aggregate `sum` function or sort by and findOneconstonCidAddedPromievent=awaitethereumRegistryContract.onCidAdded({ fromBlock },handleEventError)
The chances of this happening are probably slim so not the highest priority at the moment.
The text was updated successfully, but these errors were encountered:
Currently if EthereumRegistryWriter is restarted after an
addCid
transaction has been sent to geth but before the associatedcidAdded
event is picked up, that event will never be picked up, since EthereumRegistryWriter always starts listening tocidAdded
events from the latest block geth has seen.This can be solved by indexing
onCidAdded.blockNumber
in the db, pick up the highestonCidAdded.blockNumber
on startup and passing that tofromBlock
.The chances of this happening are probably slim so not the highest priority at the moment.
The text was updated successfully, but these errors were encountered: