mirror of
https://github.com/mimblewimble/grin.git
synced 2025-03-14 13:01:09 +03:00
fix wording in comment (#2913)
This commit is contained in:
parent
515fa54614
commit
0d4d98db0d
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ pub const YEAR_HEIGHT: u64 = 52 * WEEK_HEIGHT;
|
||||||
/// Number of blocks before a coinbase matures and can be spent
|
/// Number of blocks before a coinbase matures and can be spent
|
||||||
pub const COINBASE_MATURITY: u64 = DAY_HEIGHT;
|
pub const COINBASE_MATURITY: u64 = DAY_HEIGHT;
|
||||||
|
|
||||||
/// Ratio the secondary proof of work should take over the primary, as a
|
/// Target ratio of secondary proof of work to primary proof of work,
|
||||||
/// function of block height (time). Starts at 90% losing a percent
|
/// as a function of block height (time). Starts at 90% losing a percent
|
||||||
/// approximately every week. Represented as an integer between 0 and 100.
|
/// approximately every week. Represented as an integer between 0 and 100.
|
||||||
pub fn secondary_pow_ratio(height: u64) -> u64 {
|
pub fn secondary_pow_ratio(height: u64) -> u64 {
|
||||||
90u64.saturating_sub(height / (2 * YEAR_HEIGHT / 90))
|
90u64.saturating_sub(height / (2 * YEAR_HEIGHT / 90))
|
||||||
|
|
Loading…
Reference in a new issue