From f45c3f5ab8edfb828332abaa318453983b435a3b Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Thu, 19 Nov 2020 09:56:53 +0100 Subject: [PATCH] fix: stacking block calc --- src/pages/stacks-blockchain/integrate-stacking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/stacks-blockchain/integrate-stacking.md b/src/pages/stacks-blockchain/integrate-stacking.md index 8a412505..5d17b7c1 100644 --- a/src/pages/stacks-blockchain/integrate-stacking.md +++ b/src/pages/stacks-blockchain/integrate-stacking.md @@ -168,7 +168,7 @@ const cycleDuration = poxInfo.reward_cycle_length * blocktimeInfo.testnet.target // how much time is left (in seconds) until the next cycle begins? const secondsToNextCycle = (poxInfo.reward_cycle_length - - ((coreInfo.burn_block_height - poxInfo.first_burnchain_block_height) % + ((coreInfo.burn_block_height - poxInfo.first_burnchain_block_height - 1) % poxInfo.reward_cycle_length)) * blocktimeInfo.testnet.target_block_time;