MCPcopy Create free account
hub / github.com/ElementsProject/elements / EXCLUSIVE_LOCKS_REQUIRED

Function EXCLUSIVE_LOCKS_REQUIRED

src/validation.cpp:316–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316static 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
328void CChainState::MaybeUpdateMempoolForReorg(
329 DisconnectedBlockTransactions& disconnectpool,

Callers 3

validation.cppFile · 0.70
ProcessNewPackageFunction · 0.70

Calls 15

count_secondsFunction · 0.85
MemPoolAcceptClass · 0.85
DeploymentActiveAfterFunction · 0.85
CheckChallengeFunction · 0.85
HeightMethod · 0.80
GetMempoolMethod · 0.80
UncacheMethod · 0.80
FlushStateToDiskMethod · 0.80

Tested by

no test coverage detected