Browse Source

Address review feedback.

fix/remove-env-var
Diwaker Gupta 4 years ago
parent
commit
aaa0c60dfc
  1. 2
      src/pages/stacks-blockchain/mining.md
  2. 4
      src/pages/stacks-blockchain/technical-specs.md

2
src/pages/stacks-blockchain/mining.md

@ -56,7 +56,7 @@ The miner who is selected to mine the next block is chosen depending on the amou
The probability for a miner to mine next block equals the BTC miner send devided by the total BTC all miners send. The probability for a miner to mine next block equals the BTC miner send devided by the total BTC all miners send.
While there is no minimum BTC commitment enforced by the protocol, in practice, miners need to commit at least 11,000 satoshis: this is because each transaction includes two UTXO outputs for Proof-of-Transfer, and UTXOs smaller than 5500 satoshis run the risk of being treated as "[dust](https://unchained-capital.com/blog/dust-thermodynamics/)". While there is no minimum BTC commitment enforced by the protocol, in practice, there's a floor constrained by [dust](https://unchained-capital.com/blog/dust-thermodynamics/)": basically, if the fees for a transaction exceed the value of the spent output, it's considered dust. How dust is [calculated](https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.cpp#L14) depends on a number of factors, we've found 5,500 satoshis to be good lower bound per [output](https://learnmeabitcoin.com/technical/output). Bitcoin transactions from Stacks miners contain two outputs (for Proof-of-Transfer), so a commitment of at least 11,000 satoshis / block is recommended.
To calculate the amount of BTC to send miners should: To calculate the amount of BTC to send miners should:

4
src/pages/stacks-blockchain/technical-specs.md

@ -17,10 +17,10 @@ description: Summary of technical specifications of Stacks 2.0
- 250 STX/block for subsequent 4 years - 250 STX/block for subsequent 4 years
- 125 STX/block in perpetuity after that - 125 STX/block in perpetuity after that
- Coinbase rewards accumulate for "missed sortitions": If a Bitcoin block has no sortition (at height N), then any Stacks block mined in a subsequent sortition that builds off of any Stacks chain tip that existed at the penultimate sortition (at height N-1) may claim its coinbase. This encourages miners to keep mining even if Bitcoin fees are high. - Coinbase rewards accumulate for "missed sortitions": If a Bitcoin block has no sortition (at height N), then any Stacks block mined in a subsequent sortition that builds off of any Stacks chain tip that existed at the penultimate sortition (at height N-1) may claim its coinbase. This encourages miners to keep mining even if Bitcoin fees are high.
- Initial mining bonus: This is a special case of the above to incentivize early miners. Coinbase for all burnchain blocks between the first burn block height (to be chosen by independent miners as part of the Stacks 2.0 launch) and the first sortition winner accumulate and are distributed to miners over a fixed window (to be determined). For instance, say burn block height is 10000 and first sortition is at block 10500 and distribution window is 100 blocks, then coinbase for the first 500 blocks (10500 - 10000) will be distributed evenly to miners who win sortition over the subsequent 100 blocks. - Initial mining bonus: This is a special case of the above to incentivize early miners. Coinbase for all burnchain blocks between the first burn block height (to be chosen by independent miners as part of the Stacks 2.0 launch) and the first sortition winner accumulate and are distributed to miners over a fixed window (to be determined). For instance, say burn block height is 10,000 and first sortition is at block 10500 and distribution window is 100 blocks, then coinbase for the first 500 blocks (10,500 - 10,000) will be distributed evenly to miners who win sortition over the subsequent 100 blocks.
- Reward maturity window: 100 blocks, meaning leaders will earn the coinbase reward 100 blocks after the block they successfully mine. - Reward maturity window: 100 blocks, meaning leaders will earn the coinbase reward 100 blocks after the block they successfully mine.
- Block interval: Stacks blockchain produces blocks at the same rate as the underlying burnchain. For Bitcoin, this is approximately every 10 minutes. - Block interval: Stacks blockchain produces blocks at the same rate as the underlying burnchain. For Bitcoin, this is approximately every 10 minutes.
- BTC commitment: Miners must commit atleast 11,000 satoshis (5500 sats / UTXO output; 2 outputs / block) to avoid "dust". - BTC commitment: Miners must commit atleast 11,000 satoshis (5,500 sats / [UTXO output](https://learnmeabitcoin.com/technical/utxo)); 2 outputs / block) to avoid "dust".
- For more details, see [Mining](/stacks-blockchain/mining). - For more details, see [Mining](/stacks-blockchain/mining).
## Stacking ## Stacking

Loading…
Cancel
Save