-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring local-setup into the V2 era #156
Commits on Jul 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 88214ca - Browse repository at this point
Copy the full SHA 88214caView commit details -
Encapsulate bitcoin docker stuff
This does a few things at once: • Prepares us for a future where there will be multiple projects inside ./docker • Updates the bitcoind instance to the latest one • Updates esplora and electrs
Configuration menu - View commit details
-
Copy full SHA for 87744d6 - Browse repository at this point
Copy the full SHA 87744d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e72837 - Browse repository at this point
Copy the full SHA 4e72837View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4d92ed - Browse repository at this point
Copy the full SHA e4d92edView commit details -
This builds a geth node and deploys contracts
Configuration menu - View commit details
-
Copy full SHA for 678c622 - Browse repository at this point
Copy the full SHA 678c622View commit details -
Most of the time this won't be needed (the geth docker resets itself when contracts change), but handy if something goes very wrong.
Configuration menu - View commit details
-
Copy full SHA for 2e83f60 - Browse repository at this point
Copy the full SHA 2e83f60View commit details -
Bundle everything into docker-compose
We build the following services: • geth (ethereum) with contracts deployed • geth block explorer (localhost:8095) • bitcoind (bitcoin) • bitcoin api • bitcoin block explorer (localhost:8096)
Configuration menu - View commit details
-
Copy full SHA for 32520a3 - Browse repository at this point
Copy the full SHA 32520a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab7a71d - Browse repository at this point
Copy the full SHA ab7a71dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1569d7 - Browse repository at this point
Copy the full SHA c1569d7View commit details
Commits on Jul 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for aede19d - Browse repository at this point
Copy the full SHA aede19dView commit details -
Put the submodules in parent directories
This helps organize code a little better and also provides context to what "solidity-contracts" is
Configuration menu - View commit details
-
Copy full SHA for b195086 - Browse repository at this point
Copy the full SHA b195086View commit details -
Remove
git init
from the build stepsThese were necessary back when I was running keep-core's install.sh directly (which assumes it's being run in a git repo). Over time, I replicated the functionality in install.sh and split it up into the dockerfile and entrypoint for efficiency. We want as much as possible to live at build-time!
Configuration menu - View commit details
-
Copy full SHA for facc694 - Browse repository at this point
Copy the full SHA facc694View commit details -
Comment the mysterious yarn build || true
When we run it a single time, we get: ``` #0 62.31 Error HH501: Couldn't download compiler version 0.8.17+commit.8df45f5f. Please check your internet connection and try again. #0 62.31 HardhatError: HH501: Couldn't download compiler version 0.8.17+commit.8df45f5f. Please check your internet connection and try again. #0 62.31 at /tbtc-v2/solidity/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:175:15 #0 62.31 at async CompilerDownloader.downloadCompiler (/tbtc-v2/solidity/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:150:5) #0 62.31 at async SimpleTaskDefinition.action (/tbtc-v2/solidity/node_modules/hardhat/src/builtin-tasks/compile.ts:585:9) #0 62.31 at async Environment._runTaskDefinition (/tbtc-v2/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14) #0 62.31 at async Environment.run (/tbtc-v2/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:156:14) #0 62.31 at async SimpleTaskDefinition.action (/tbtc-v2/solidity/node_modules/hardhat/src/builtin-tasks/compile.ts:678:36) #0 62.31 at async Environment._runTaskDefinition (/tbtc-v2/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14) #0 62.31 at async Environment.run (/tbtc-v2/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:156:14) #0 62.31 at async Environment._runTaskDefinition (/tbtc-v2/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14) #0 62.31 at async OverriddenTaskDefinition._action (/tbtc-v2/solidity/node_modules/@openzeppelin/hardhat-upgrades/src/index.ts:77:33) #0 62.31 #0 62.31 Caused by: HeadersTimeoutError: Headers Timeout Error #0 62.31 at Timeout.onParserTimeout [as _onTimeout] (/tbtc-v2/solidity/node_modules/undici/lib/client.js:894:28) #0 62.31 at listOnTimeout (node:internal/timers:561:11) #0 62.31 at processTimers (node:internal/timers:502:7) #0 62.48 error Command failed with exit code 1. ``` But it always works on the second time. There is probably a way to fix this "better", but for now just running it twice (ignoring the error with `|| true`) works.
Configuration menu - View commit details
-
Copy full SHA for c42e76a - Browse repository at this point
Copy the full SHA c42e76aView commit details -
Comment the mysterioud commit checkout in electrs
Blockstream's electrs doesn't use git tags, and we don't want the docker builds to change behavior based on when they're built, so we need to check out code at a specific point. We choose the most up-to-date branch in the repo, which happens to be `202305-fix-mempool-batching`. Unclear as to why these branches don't make their way back into the main branch. Unclear as to what the main branch is.
Configuration menu - View commit details
-
Copy full SHA for 1a46f7c - Browse repository at this point
Copy the full SHA 1a46f7cView commit details -
They're out of date and failing. If we want to build similar ones in the future, we can!
Configuration menu - View commit details
-
Copy full SHA for 8c71a0e - Browse repository at this point
Copy the full SHA 8c71a0eView commit details