Skip to content
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

chore: deposit from ckb-miner-and-faucet in godwoken entrypoint after godwoken is started #256

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docker/layer2/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,15 @@ function create-polyjuice-root-account() {
start-ckb-miner-at-background

# Deposit for block_producer
#
# Here we deposit from ckb-miner-and-faucet.key instead of
# godwoken-block-producer.key to avoid double spending cells locked by the
# latter -- godwoken has already started and may spend them too for block
# submission etc.
log "Deposit for block_producer"
RUST_BACKTRACE=full gw-tools deposit-ckb \
--privkey-path $ACCOUNTS_DIR/godwoken-block-producer.key \
--privkey-path $ACCOUNTS_DIR/ckb-miner-and-faucet.key \
--eth-address 0x2e9df163055245bfadd35e3a1f05f06096447c85 \
blckngm marked this conversation as resolved.
Show resolved Hide resolved
--godwoken-rpc-url http://127.0.0.1:8119 \
--ckb-rpc http://ckb:8114 \
--scripts-deployment-path $CONFIG_DIR/scripts-deployment.json \
Expand Down