keep-network / local-setup

Allow to easily set up tBTC and Keep locally for development and test purposes.
MIT License
8 stars 16 forks source link

Refactor core, ecdsa, tbtc and tbtc-dapp Installation Into Their Own Script #60

Closed beaurancourt closed 3 years ago

beaurancourt commented 3 years ago

When we restart geth, we need to re-deploy all of our contracts. Unfortunately, running install.sh is going to try to refetch master which may not be what we want (we might be making changes) and also takes time.

Instead, we refactor the installation of core, ecdsa, tbtc and tbtc-dapp into their own install-applications-with-contracts.sh script which is invoked from install.sh. This allows us to simply run install-applications-with-contracts.sh if geth was restarted at some point.

tagging @dimpar for review since we spit-balled it a bit

beaurancourt commented 3 years ago

Verified that everything is working - gave this a test drive today when I re-installed and ran everything from complete scratch.

I was also able to shut down geth and bitcoind, start them back up, and then run install-applications-with-contracts.sh and have it work :tada: