Bitcoin ABC  0.26.3
P2P Digital Currency
Functions | Variables
stakingrewards.cpp File Reference
#include <policy/block/stakingrewards.h>
#include <avalanche/avalanche.h>
#include <avalanche/processor.h>
#include <blockindex.h>
#include <consensus/amount.h>
#include <logging.h>
#include <primitives/block.h>
#include <vector>
Include dependency graph for stakingrewards.cpp:

Go to the source code of this file.

Functions

Amount GetStakingRewardsAmount (const Amount &coinbaseValue)
 

Variables

static constexpr int STAKING_REWARD_RATIO = 25
 Percentage of the block reward to be sent to staking rewards. More...
 

Function Documentation

◆ GetStakingRewardsAmount()

Amount GetStakingRewardsAmount ( const Amount coinbaseValue)

Definition at line 66 of file stakingrewards.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ STAKING_REWARD_RATIO

constexpr int STAKING_REWARD_RATIO = 25
staticconstexpr

Percentage of the block reward to be sent to staking rewards.

FIXME This is a placeholder for now and the current ratio is for testing purpose only.

Definition at line 21 of file stakingrewards.cpp.