chore: bump stacks-node with stability fixes #127
build.yml
on: push
build-stacks-node
9m 37s
build-push-docker
19m 14s
Annotations
1 error
build-push-docker
buildx failed with: ERROR: failed to solve: process "/bin/bash -ce if [[ ! -z \"${REWARD_RECIPIENT}\" ]]; then\n export REWARD_RECIPIENT_CONF=\"block_reward_recipient = \\\"$REWARD_RECIPIENT\\\"\"\n fi\n\n mkdir -p /chainstate/bitcoin-data\n bitcoind &\n BTCD_PID=$!\n bitcoin-cli -rpcwait getmininginfo\n bitcoin-cli -named createwallet wallet_name=\"\" descriptors=false\n bitcoin-cli importprivkey $BTC_ADDR_WIF \"\" false\n bitcoin-cli generatetoaddress 101 $BTC_ADDR\n\n node event-observer.js &\n EVENT_OBSERVER_PID=$!\n\n export STACKS_EVENT_OBSERVER=\"127.0.0.1:3998\"\n mkdir -p /chainstate/stacks-blockchain-data\n envsubst < config.toml.in > config.toml\n stacks-node start --config=config.toml &\n STACKS_PID=$!\n\n while true; do\n HEIGHT=$(curl -s localhost:20443/v2/info | jq '.burn_block_height')\n if [ \"$HEIGHT\" = \"101\" ]; then\n echo \"Stacks node caught up to Bitcoin block $HEIGHT\"\n break\n fi\n sleep 0.5s\n done\n\n DEFAULT_TIMEOUT=$(($(date +%s) + 30))\n SENT_STACKING=0\n while true; do\n TX=$(bitcoin-cli listtransactions '*' 1 0 true)\n CONFS=$(echo \"$TX\" | jq '.[].confirmations')\n if [ \"$CONFS\" = \"0\" ] || [ $(date +%s) -gt $DEFAULT_TIMEOUT ]; then\n if [ $(date +%s) -gt $DEFAULT_TIMEOUT ]; then\n echo \"Timed out waiting for a mempool tx, mining a btc block...\"\n else\n echo \"Detected Stacks mining mempool tx, mining btc block...\"\n fi\n bitcoin-cli generatetoaddress 1 $BTC_ADDR\n DEFAULT_TIMEOUT=$(($(date +%s) + 30))\n chain_height=$(bitcoin-cli getblockcount)\n echo \"Current Bitcoin chain height: $chain_height\"\n \n POX_CONTRACT=$(curl -s localhost:20443/v2/pox | jq -r '.contract_id')\n BURN_HEIGHT=$(curl -s localhost:20443/v2/pox | jq -r '.current_burnchain_block_height')\n echo \"POX contract check $BURN_HEIGHT $POX_CONTRACT\"\n if [ \"$POX_CONTRACT\" = \"ST000000000000000000002AMW42H.pox-4\" ] && [ \"$SENT_STACKING\" = \"0\" ]; then\n echo \"POX contract is pox-4\"\n SENT_STACKING=1\n # issue a stack-stx tx, required for epoch3.0 transition\n POX_STATE=$(curl -s localhost:20443/v2/pox)\n echo \"Stack STX tx for epoch3.0 transition\"\n echo \"$POX_STATE\" | jq '.'\n MIN_STACKING_AMOUNT=\"8500000000000000\"\n BURN_HEIGHT=$(echo $POX_STATE | jq '.current_burnchain_block_height + 1')\n node /root/stack.js $MIN_STACKING_AMOUNT $BURN_HEIGHT\n sleep 5s\n fi\n\n if [ \"$chain_height\" = \"$STACKS_PREHEAT_FINISH_HEIGHT\" ]; then\n break\n fi\n\n else\n sleep 0.1s\n fi\n done\n\n\n kill $STACKS_PID\n wait $STACKS_PID\n\n bitcoin-cli stop\n wait $BTCD_PID\n\n kill $EVENT_OBSERVER_PID\n" did not complete successfully: exit code: 1
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
stacks-node-bin
Expired
|
659 MB |
|