Browse Source

fix: stacking block calc

fix/gh-action
kyranjamie 4 years ago
committed by Alexander Graebe
parent
commit
f45c3f5ab8
  1. 2
      src/pages/stacks-blockchain/integrate-stacking.md

2
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;

Loading…
Cancel
Save