This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
orderwatch: store networkId in DB #237
Closed
Description
Currently Mesh does not store the networkID
persistently corresponding to the block headers stored. If a Mesh operator is on Ganache (very low block numbers) and then switches to mainnet, Mesh will attempt to sync up to the latest block (potentially 8,000,000+ blocks) since it assumes we were previously on mainnet as well.
By persistently storing the networkID
, we can throw an error requiring the operator to remove the orders
and blocks
stored in the DB as they correspond to a different network.