-
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
Testnet-ready end-to-end test script #20
Conversation
Change the local BTC node logic and always mine to a predictable address.
Got rid of the direct dependency on Bitcoin RPC node and use Electrum with the offline bcoin wallet instead.
# Get an address. | ||
address=$(btccli getnewaddress) | ||
# Use a specific private key. | ||
privateKey="cTj6Z9fxMr4pzfpUhiN8KssVzZjgQz9zFCfh87UrH8ZLjh3hGZKF" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it expected that this is the same value as stored in kube's secret e2e-test-secret/bitcoin-depositor-pk
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary but it can be if there is such intention. bitcoin/bitcoind/entrypoint.sh
is the local BTC node script and here we use an explicit private key in order to send the coinbase to a predictable address and use it as input for deposit transactions in the e2e test script executed against the local environment.
Refs: keep-network/tbtc#703
Depends on: keep-network/tbtc.js#58Here we modify the
e2e-test.js
script to enable the interaction with Keep testnet.Summary
local-setup
instances and testnet.sendtoaddress
. This opens new customization capabilities for future (e.g. test different types of transactions)local-setup
scripts to keep the current functionalityDockerfile
which allows to build and rune2e-test.js
independently against an arbitrary environment and avoid the installation of alocal-setup
instancedeployments/e2e-test
) to continuously execute the e2e test script against the testnet