| 466 | } |
| 467 | |
| 468 | static 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 | |
| 480 | bool static IsBTGHardForkEnabled(int nHeight, const Consensus::Params& params) { |
| 481 | return nHeight >= params.BTGHeight; |
no test coverage detected