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

Method operator()

src/txrequest.cpp:151–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149{
150 using result_type = ByPeerView;
151 result_type operator()(const Announcement& ann) const
152 {
153 return ByPeerView{ann.m_peer, ann.GetState() == State::CANDIDATE_BEST, ann.m_txhash};
154 }
155};
156
157// The ByTxHash index is sorted by (txhash, state, priority).

Callers

nothing calls this directly

Calls 1

GetStateMethod · 0.80

Tested by

no test coverage detected