mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-12 22:31:09 +03:00
Consensus change: set reward and base grin unit
This commit is contained in:
parent
2d105deea7
commit
f679a9e458
1 changed files with 4 additions and 1 deletions
|
@ -24,8 +24,11 @@ use std::fmt;
|
||||||
use ser;
|
use ser;
|
||||||
use core::target::Difficulty;
|
use core::target::Difficulty;
|
||||||
|
|
||||||
|
/// A grin is divisible to 10^9, a nanogrin
|
||||||
|
pub const GRIN_BASE: u64 = 1_000_000_000;
|
||||||
|
|
||||||
/// The block subsidy amount
|
/// The block subsidy amount
|
||||||
pub const REWARD: u64 = 1_000_000_000;
|
pub const REWARD: u64 = 50*GRIN_BASE;
|
||||||
|
|
||||||
/// Actual block reward for a given total fee amount
|
/// Actual block reward for a given total fee amount
|
||||||
pub fn reward(fee: u64) -> u64 {
|
pub fn reward(fee: u64) -> u64 {
|
||||||
|
|
Loading…
Reference in a new issue