Plus and minus, not so similar

This commit is contained in:
Ignotus Peverell 2019-01-14 06:30:52 +00:00
parent 5fcf93deae
commit bfd0613275
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -62,7 +62,7 @@ pub const COINBASE_MATURITY: u64 = DAY_HEIGHT;
/// 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))
90u64.saturating_add(height / (2 * YEAR_HEIGHT / 90))
}
/// The AR scale damping factor to use. Dependent on block height