Changeset View
Changeset View
Standalone View
Standalone View
src/test/avalanche_tests.cpp
// Copyright (c) 2010 The Bitcoin developers | // Copyright (c) 2010 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. | ||||
#include "avalanche.h" | #include <avalanche.h> | ||||
#include "config.h" | |||||
#include "net_processing.h" // For PeerLogicValidation | |||||
#include "test/test_bitcoin.h" | #include <config.h> | ||||
#include <net_processing.h> // For PeerLogicValidation | |||||
#include <test/test_bitcoin.h> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
struct AvalancheTest { | struct AvalancheTest { | ||||
static void runEventLoop(AvalancheProcessor &p) { p.runEventLoop(); } | static void runEventLoop(AvalancheProcessor &p) { p.runEventLoop(); } | ||||
static std::vector<CInv> getInvsForNextPoll(const AvalancheProcessor &p) { | static std::vector<CInv> getInvsForNextPoll(const AvalancheProcessor &p) { | ||||
return p.getInvsForNextPoll(false); | return p.getInvsForNextPoll(false); | ||||
▲ Show 20 Lines • Show All 850 Lines • Show Last 20 Lines |