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