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

Method HaveTxToReconsider

src/node/txorphanage.cpp:609–613  ·  view source on GitHub ↗

Return whether there is a tx that can be reconsidered. */

Source from the content-addressed store, hash-verified

607
608/** Return whether there is a tx that can be reconsidered. */
609bool TxOrphanageImpl::HaveTxToReconsider(NodeId peer)
610{
611 auto it = m_orphans.get<ByPeer>().lower_bound(ByPeerView{peer, true, 0});
612 return it != m_orphans.get<ByPeer>().end() && it->m_announcer == peer && it->m_reconsider;
613}
614
615void TxOrphanageImpl::EraseForBlock(const CBlock& block)
616{

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80
HaveMoreWorkMethod · 0.80

Calls 2

lower_boundMethod · 0.80
endMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64