Bitcoin ABC  0.29.2
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/activation.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)
 
bool IsStakingRewardsActivated (const Consensus::Params &params, const CBlockIndex *pprev)
 

Variables

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

Function Documentation

◆ GetStakingRewardsAmount()

Amount GetStakingRewardsAmount ( const Amount coinbaseValue)

Definition at line 65 of file stakingrewards.cpp.

Here is the caller graph for this function:

◆ IsStakingRewardsActivated()

bool IsStakingRewardsActivated ( const Consensus::Params params,
const CBlockIndex pprev 
)

Definition at line 69 of file stakingrewards.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ STAKING_REWARD_RATIO

constexpr int STAKING_REWARD_RATIO = 10
staticconstexpr

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

Definition at line 20 of file stakingrewards.cpp.