MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CanDirectFetch

Method CanDirectFetch

src/net_processing.cpp:1358–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356}
1357
1358bool PeerManagerImpl::CanDirectFetch()
1359{
1360 return m_chainman.ActiveChain().Tip()->Time() > NodeClock::now() - m_chainparams.GetConsensus().PowTargetSpacing() * 20;
1361}
1362
1363static bool PeerHasHeader(CNodeState *state, const CBlockIndex *pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
1364{

Callers

nothing calls this directly

Calls 3

PowTargetSpacingMethod · 0.80
TimeMethod · 0.45
TipMethod · 0.45

Tested by

no test coverage detected