Changeset View
Changeset View
Standalone View
Standalone View
src/invrequest.h
- This file was moved from src/txrequest.h.
// Copyright (c) 2020 The Bitcoin Core developers | // Copyright (c) 2020 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_TXREQUEST_H | #ifndef BITCOIN_INVREQUEST_H | ||||
#define BITCOIN_TXREQUEST_H | #define BITCOIN_INVREQUEST_H | ||||
#include <net.h> // For NodeId | #include <net.h> // For NodeId | ||||
#include <chrono> | #include <chrono> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <functional> | #include <functional> | ||||
#include <vector> | #include <vector> | ||||
▲ Show 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | |||||
template <class InvId> | template <class InvId> | ||||
uint64_t TxRequestTracker<InvId>::ComputePriority(const InvId &invid, | uint64_t TxRequestTracker<InvId>::ComputePriority(const InvId &invid, | ||||
NodeId peer, | NodeId peer, | ||||
bool preferred) const { | bool preferred) const { | ||||
return m_impl->ComputePriority(invid, peer, preferred); | return m_impl->ComputePriority(invid, peer, preferred); | ||||
} | } | ||||
#endif // BITCOIN_TXREQUEST_H | #endif // BITCOIN_INVREQUEST_H |