Skip to content

Commit

Permalink
Merge pull request godwokenrises#256 from sopium/deposit-block-produc…
Browse files Browse the repository at this point in the history
…er-from-faucet

chore: deposit from ckb-miner-and-faucet in godwoken entrypoint after godwoken is started
  • Loading branch information
keroro520 authored May 24, 2022
2 parents a14feb1 + 2101c1f commit bb480c8
Showing 1 changed file with 7 additions and 1 deletion.
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 \
--godwoken-rpc-url http://127.0.0.1:8119 \
--ckb-rpc http://ckb:8114 \
--scripts-deployment-path $CONFIG_DIR/scripts-deployment.json \
Expand Down

0 comments on commit bb480c8

Please sign in to comment.