Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 3,693 Lines • ▼ Show 20 Lines | public: | ||||
bool operator()(std::set<uint256>::iterator a, | bool operator()(std::set<uint256>::iterator a, | ||||
std::set<uint256>::iterator b) { | std::set<uint256>::iterator b) { | ||||
/* As std::make_heap produces a max-heap, we want the entries with the | /* As std::make_heap produces a max-heap, we want the entries with the | ||||
* fewest ancestors/highest fee to sort later. */ | * fewest ancestors/highest fee to sort later. */ | ||||
return mp->CompareDepthAndScore(*b, *a); | return mp->CompareDepthAndScore(*b, *a); | ||||
} | } | ||||
}; | }; | ||||
} | } // namespace | ||||
bool PeerLogicValidation::SendMessages(const Config &config, CNode *pto, | bool PeerLogicValidation::SendMessages(const Config &config, CNode *pto, | ||||
std::atomic<bool> &interruptMsgProc) { | std::atomic<bool> &interruptMsgProc) { | ||||
const Consensus::Params &consensusParams = | const Consensus::Params &consensusParams = | ||||
config.GetChainParams().GetConsensus(); | config.GetChainParams().GetConsensus(); | ||||
// Don't send anything until the version handshake is complete | // Don't send anything until the version handshake is complete | ||||
if (!pto->fSuccessfullyConnected || pto->fDisconnect) { | if (!pto->fSuccessfullyConnected || pto->fDisconnect) { | ||||
▲ Show 20 Lines • Show All 647 Lines • Show Last 20 Lines |