Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/avalanche.h
- This file was moved from src/avalanche.h.
// Copyright (c) 2018-2019 The Bitcoin developers | // Copyright (c) 2018-2019 The Bitcoin 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_AVALANCHE_H | #ifndef BITCOIN_AVALANCHE_AVALANCHE_H | ||||
#define BITCOIN_AVALANCHE_H | #define BITCOIN_AVALANCHE_AVALANCHE_H | ||||
#include <blockindexworkcomparator.h> | #include <blockindexworkcomparator.h> | ||||
#include <eventloop.h> | #include <eventloop.h> | ||||
#include <key.h> | #include <key.h> | ||||
#include <net.h> | #include <net.h> | ||||
#include <protocol.h> // for CInv | #include <protocol.h> // for CInv | ||||
#include <rwcollection.h> | #include <rwcollection.h> | ||||
#include <serialize.h> | #include <serialize.h> | ||||
▲ Show 20 Lines • Show All 349 Lines • ▼ Show 20 Lines | private: | ||||
friend struct AvalancheTest; | friend struct AvalancheTest; | ||||
}; | }; | ||||
/** | /** | ||||
* Global avalanche instance. | * Global avalanche instance. | ||||
*/ | */ | ||||
extern std::unique_ptr<AvalancheProcessor> g_avalanche; | extern std::unique_ptr<AvalancheProcessor> g_avalanche; | ||||
#endif // BITCOIN_AVALANCHE_H | #endif // BITCOIN_AVALANCHE_AVALANCHE_H |