MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / operator()

Method operator()

src/txrequest.cpp:145–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143{
144 using result_type = ByPeerView;
145 result_type operator()(const Announcement& ann) const
146 {
147 return ByPeerView{ann.m_peer, ann.GetState() == State::CANDIDATE_BEST, ann.m_gtxid.ToUint256()};
148 }
149};
150
151// The ByTxHash index is sorted by (txhash, state, priority).

Callers

nothing calls this directly

Calls 1

GetStateMethod · 0.45

Tested by

no test coverage detected