| 314 | } |
| 315 | |
| 316 | static bool IsCurrentForFeeEstimation(CChainState& active_chainstate) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| 317 | { |
| 318 | AssertLockHeld(cs_main); |
| 319 | if (active_chainstate.IsInitialBlockDownload()) |
| 320 | return false; |
| 321 | if (active_chainstate.m_chain.Tip()->GetBlockTime() < count_seconds(GetTime<std::chrono::seconds>() - MAX_FEE_ESTIMATION_TIP_AGE)) |
| 322 | return false; |
| 323 | if (active_chainstate.m_chain.Height() < pindexBestHeader->nHeight - 1) |
| 324 | return false; |
| 325 | return true; |
| 326 | } |
| 327 | |
| 328 | void CChainState::MaybeUpdateMempoolForReorg( |
| 329 | DisconnectedBlockTransactions& disconnectpool, |
no test coverage detected