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
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
When running ganache-cli and saving the chain database e.g. npx ganache-cli -d --db Ganache_Data, when stopping and starting ganache-cli the network ID should stay the same.
Current Behavior
When running ganache-cli and saving the chain database e.g. npx ganache-cli -d --db Ganache_Data, when stopping and starting ganache-cli the network ID is the current time.
Currently it appears the only way to keep the network ID is to use the -i/--networkId option.
Steps to Reproduce (for bugs)
Start ganache-cli and save the chain database for the first time
$ npx ganache-cli -d --db Ganache_Data
Check the network ID is current time
Start ganache-cli and use the saved chain database
$ npx ganache-cli -d --db Ganache_Data
Check the network ID is current time and not the previous network ID
--db
option still creates a new network ID whenganache-cli
restartedhttps://gitter.im/ConsenSys/truffle?at=5eb2392ba9de3d01b1ee3808
Expected Behavior
When running ganache-cli and saving the chain database e.g.
npx ganache-cli -d --db Ganache_Data
, when stopping and starting ganache-cli the network ID should stay the same.Current Behavior
When running ganache-cli and saving the chain database e.g.
npx ganache-cli -d --db Ganache_Data
, when stopping and starting ganache-cli the network ID is the current time.Currently it appears the only way to keep the network ID is to use the
-i
/--networkId
option.Steps to Reproduce (for bugs)
Start
ganache-cli
and save the chain database for the first timeCheck the network ID is current time
Start
ganache-cli
and use the saved chain databaseCheck the network ID is current time and not the previous network ID
Context
Reported by a community member in the OpenZeppelin Community Forum who wanted to persist
ganache-cli
across restarts but OpenZeppelin CLI was detecting a new network as the network ID was changing: https://forum.openzeppelin.com/t/persist-deployment-on-local-blockchain/2788Your Environment
The text was updated successfully, but these errors were encountered: