This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
Use a separate database URL/path for each Ethereum network #866
Labels
enhancement
New feature or request
Historically, we have seen issues whenever there is a mismatch between the chainId/network used in the database and the chainId/network for the Ethereum RPC URL. We have some code in place to help identify mismatches but that code isn't perfect. There is a race condition on startup where some data from the wrong chain can still make its way into the database. We also are not able to handle switching the chainId/network on the fly in the browser.
As an alternative and cleaner solution, I suggest we keep the data for each chainId/network separate by using a different database URL or path for each one. This is the approach that Augur and a few others have taken.
The text was updated successfully, but these errors were encountered: