From 0d4d98db0d127c4557dd2f66aa2461fab8038b67 Mon Sep 17 00:00:00 2001 From: NaN-git Date: Fri, 26 Jul 2019 09:43:18 +0200 Subject: [PATCH] fix wording in comment (#2913) --- core/src/consensus.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/consensus.rs b/core/src/consensus.rs index 5a7b0a62a..f62ba2d8b 100644 --- a/core/src/consensus.rs +++ b/core/src/consensus.rs @@ -59,8 +59,8 @@ pub const YEAR_HEIGHT: u64 = 52 * WEEK_HEIGHT; /// Number of blocks before a coinbase matures and can be spent pub const COINBASE_MATURITY: u64 = DAY_HEIGHT; -/// Ratio the secondary proof of work should take over the primary, as a -/// function of block height (time). Starts at 90% losing a percent +/// Target ratio of secondary proof of work to primary proof of work, +/// as a function of block height (time). Starts at 90% losing a percent /// approximately every week. Represented as an integer between 0 and 100. pub fn secondary_pow_ratio(height: u64) -> u64 { 90u64.saturating_sub(height / (2 * YEAR_HEIGHT / 90))