Changeset View
Changeset View
Standalone View
Standalone View
src/test/addrman_tests.cpp
// Copyright (c) 2012-2016 The Bitcoin Core developers | // Copyright (c) 2012-2016 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. | ||||
#include "addrman.h" | #include <addrman.h> | ||||
#include "test/test_bitcoin.h" | |||||
#include <hash.h> | |||||
#include <netbase.h> | |||||
#include <random.h> | |||||
#include <test/test_bitcoin.h> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <string> | |||||
#include "hash.h" | #include <string> | ||||
#include "netbase.h" | |||||
#include "random.h" | |||||
class CAddrManTest : public CAddrMan { | class CAddrManTest : public CAddrMan { | ||||
uint64_t state; | uint64_t state; | ||||
public: | public: | ||||
CAddrManTest() { state = 1; } | CAddrManTest() { state = 1; } | ||||
//! Ensure that bucket placement is always the same for testing purposes. | //! Ensure that bucket placement is always the same for testing purposes. | ||||
▲ Show 20 Lines • Show All 665 Lines • Show Last 20 Lines |