Skip to content

Commit

Permalink
Merge pull request #43 from hirosystems/fix/epoch3-block-times
Browse files Browse the repository at this point in the history
fix: begin epoch 3.0 block times at start height - 1
  • Loading branch information
obycode authored Oct 1, 2024
2 parents 71c1492 + 3c7b5a7 commit 22d8734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ services:
SLEEP_DURATION=$${MINE_INTERVAL}
BLOCK_HEIGHT=$$(bitcoin-cli -rpcconnect=bitcoind getblockcount)
if [ "$${BLOCK_HEIGHT}" -ge "$${STACKS_30_HEIGHT}" ]; then
if [ "$${BLOCK_HEIGHT}" -ge $$(( $${STACKS_30_HEIGHT} - 1 )) ]; then
echo "In Epoch3, sleeping for $${MINE_INTERVAL_EPOCH3} ..."
SLEEP_DURATION=$${MINE_INTERVAL_EPOCH3}
elif [ "$${BLOCK_HEIGHT}" -ge "$${STACKS_25_HEIGHT}" ]; then
Expand Down

0 comments on commit 22d8734

Please sign in to comment.