Skip to content

chore: bump stacks-node in miner docker compose #143

chore: bump stacks-node in miner docker compose

chore: bump stacks-node in miner docker compose #143

Triggered via push February 1, 2024 18:45
Status Failure
Total duration 16m 28s
Artifacts 1

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 2 warnings
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=main descriptors=false load_on_startup=true\n bitcoin-cli -rpcwallet=main 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 -rpcwallet=main 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
build-stacks-node
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build-push-docker
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/download-artifact@v3, docker/metadata-action@v4, docker/setup-qemu-action@v2, docker/setup-buildx-action@v2, docker/login-action@v2, docker/build-push-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
stacks-node-bin Expired
693 MB