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 315 Lines • ▼ Show 20 Lines | public: | ||||
* This can only be called immediately after GetRequestable, with the same | * This can only be called immediately after GetRequestable, with the same | ||||
* 'now' parameter. | * 'now' parameter. | ||||
*/ | */ | ||||
void PostGetRequestableSanityCheck(std::chrono::microseconds now) const { | void PostGetRequestableSanityCheck(std::chrono::microseconds now) const { | ||||
m_impl->PostGetRequestableSanityCheck(now); | m_impl->PostGetRequestableSanityCheck(now); | ||||
} | } | ||||
}; | }; | ||||
#endif // BITCOIN_TXREQUEST_H | #endif // BITCOIN_INVREQUEST_H |