From eedf9010431866d7d33249b14839ff81493ffee7 Mon Sep 17 00:00:00 2001 From: Diwaker Gupta <15990+diwakergupta@users.noreply.github.com> Date: Tue, 29 Dec 2020 16:50:48 -0500 Subject: [PATCH 1/2] Address #2228: update reward cycle duration in SIP-007 --- sip/sip-007-stacking-consensus.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sip/sip-007-stacking-consensus.md b/sip/sip-007-stacking-consensus.md index 0cad04027be..8fcd281d9cc 100644 --- a/sip/sip-007-stacking-consensus.md +++ b/sip/sip-007-stacking-consensus.md @@ -260,11 +260,11 @@ reward period. If broadcast on the Bitcoin chain, they may be broadcast during the prepare phase, but must be included before the prepare phase finishes. -These signed messages are valid for at most 12000 Bitcoin blocks (12 -reward cycles, or ~3 month). If the signed message specifies a lockup -period `x` less than 12000 blocks, then the signed message is only valid for -Stacking participation for `floor(x / 1000)` reward cycles (the minimum -participation length is one cycle: 1000 blocks). +These signed messages are valid for at most 12 reward cycles (24000 Bitcoin +blocks or ~7 months). If the signed message specifies a lockup period `x` less +than 24000 blocks, then the signed message is only valid for Stacking +participation for `floor(x / 2000)` reward cycles (the minimum participation +length is one cycle: 2000 blocks). # Anchor Blocks and Reward Consensus @@ -272,7 +272,7 @@ participation length is one cycle: 1000 blocks). In the **prepare** phase of the Stacking algorithm, miners and network participants determine the anchor block and the reward set. The prepare phase is a window `w` of Bitcoin blocks *before* the reward -cycle begins (e.g., the window may be 240 Bitcoin blocks). +cycle begins (e.g., the window may be 100 Bitcoin blocks). At a high-level, nodes determine whether any block was confirmed by `F*w` blocks during the phase, where `F` is a large fraction (e.g., From 66b9f77fa4ecff40b745b4adb636be8a13aadf61 Mon Sep 17 00:00:00 2001 From: Diwaker Gupta <15990+diwakergupta@users.noreply.github.com> Date: Tue, 29 Dec 2020 19:14:17 -0500 Subject: [PATCH 2/2] Fix reward cycle length. --- sip/sip-007-stacking-consensus.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sip/sip-007-stacking-consensus.md b/sip/sip-007-stacking-consensus.md index 8fcd281d9cc..6a8a599dfa8 100644 --- a/sip/sip-007-stacking-consensus.md +++ b/sip/sip-007-stacking-consensus.md @@ -260,11 +260,11 @@ reward period. If broadcast on the Bitcoin chain, they may be broadcast during the prepare phase, but must be included before the prepare phase finishes. -These signed messages are valid for at most 12 reward cycles (24000 Bitcoin +These signed messages are valid for at most 12 reward cycles (25200 Bitcoin blocks or ~7 months). If the signed message specifies a lockup period `x` less -than 24000 blocks, then the signed message is only valid for Stacking -participation for `floor(x / 2000)` reward cycles (the minimum participation -length is one cycle: 2000 blocks). +than 25200 blocks, then the signed message is only valid for Stacking +participation for `floor(x / 2100)` reward cycles (the minimum participation +length is one cycle: 2100 blocks). # Anchor Blocks and Reward Consensus