mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Minor warning removal
This commit is contained in:
parent
2c5469568f
commit
6db0bcefa5
2 changed files with 5 additions and 2 deletions
|
@ -47,10 +47,13 @@ pub fn reward(fee: u64) -> u64 {
|
|||
REWARD + fee
|
||||
}
|
||||
|
||||
/// Nominal height for standard time intervals
|
||||
/// Nominal height for standard time intervals, hour is 60 blocks
|
||||
pub const HOUR_HEIGHT: u64 = 3600 / BLOCK_TIME_SEC;
|
||||
/// A day is 1440 blocks
|
||||
pub const DAY_HEIGHT: u64 = 24 * HOUR_HEIGHT;
|
||||
/// A week is 10_080 blocks
|
||||
pub const WEEK_HEIGHT: u64 = 7 * DAY_HEIGHT;
|
||||
/// A year is 524_160 blocks
|
||||
pub const YEAR_HEIGHT: u64 = 52 * WEEK_HEIGHT;
|
||||
|
||||
/// Number of blocks before a coinbase matures and can be spent
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
use consensus::HeaderInfo;
|
||||
use consensus::{
|
||||
graph_weight, BASE_EDGE_BITS, BLOCK_TIME_SEC, COINBASE_MATURITY, CUT_THROUGH_HORIZON,
|
||||
DAY_HEIGHT, DIFFICULTY_ADJUST_WINDOW, INITIAL_DIFFICULTY, MIN_DIFFICULTY, PROOFSIZE,
|
||||
DAY_HEIGHT, DIFFICULTY_ADJUST_WINDOW, INITIAL_DIFFICULTY, PROOFSIZE,
|
||||
SECOND_POW_EDGE_BITS,
|
||||
};
|
||||
use pow::{self, CuckatooContext, EdgeType, PoWContext};
|
||||
|
|
Loading…
Reference in a new issue