MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / IsBlockInflatedRewardStarted

Method IsBlockInflatedRewardStarted

src/chain/blockdelegates.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool chain::IsBlockInflatedRewardStarted(CCacheWrapper &cw, HeightType height) {
59 auto version = GetFeatureForkVersion(height);
60 if (version >= MAJOR_VER_R3_5) {
61 CBlockInflatedReward blockInflatedReward;
62 cw.blockCache.GetBlockInflatedReward(blockInflatedReward);
63 return (blockInflatedReward.start_height != 0 && height >= blockInflatedReward.start_height);
64 }
65 return false;
66}
67
68// process block delegates, call at the tail of block executing
69bool chain::ProcessBlockDelegates(CBlock &block, CCacheWrapper &cw, CValidationState &state) {

Callers

nothing calls this directly

Calls 2

GetFeatureForkVersionFunction · 0.85

Tested by

no test coverage detected