MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / IsCurrentForFeeEstimation

Function IsCurrentForFeeEstimation

src/validation.cpp:468–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468static bool IsCurrentForFeeEstimation()
469{
470 AssertLockHeld(cs_main);
471 if (IsInitialBlockDownload())
472 return false;
473 if (chainActive.Tip()->GetBlockTime() < (GetTime() - MAX_FEE_ESTIMATION_TIP_AGE))
474 return false;
475 if (chainActive.Height() < pindexBestHeader->nHeight - 1)
476 return false;
477 return true;
478}
479
480bool static IsBTGHardForkEnabled(int nHeight, const Consensus::Params& params) {
481 return nHeight >= params.BTGHeight;

Callers 1

AcceptToMemoryPoolWorkerFunction · 0.85

Calls 5

IsInitialBlockDownloadFunction · 0.85
GetTimeFunction · 0.85
HeightMethod · 0.80
GetBlockTimeMethod · 0.45
TipMethod · 0.45

Tested by

no test coverage detected