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

Method GetOneDayBlocks

src/config/chainparams.cpp:439–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439uint32_t CBaseParams::GetOneDayBlocks(const int32_t currBlockHeight) const {
440 uint32_t count = ::GetDayBlockCount(currBlockHeight);
441 if (NetworkID() != REGTEST_NET)
442 return count;
443 return GetArg("-onedayblocks", count);
444}

Callers 3

CdpToJsonMethod · 0.80
CdpNeedSettleInterestFunction · 0.80
ComputeCDPInterestFunction · 0.80

Calls 1

GetDayBlockCountFunction · 0.85

Tested by

no test coverage detected