Changeset View
Changeset View
Standalone View
Standalone View
src/test/addrman_tests.cpp
Show All 11 Lines | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <string> | #include <string> | ||||
class CAddrManTest : public CAddrMan { | class CAddrManTest : public CAddrMan { | ||||
uint64_t state; | uint64_t state; | ||||
public: | public: | ||||
CAddrManTest(bool makeDeterministic = true) { | explicit CAddrManTest(bool makeDeterministic = true) { | ||||
state = 1; | state = 1; | ||||
if (makeDeterministic) { | if (makeDeterministic) { | ||||
// Set addrman addr placement to be deterministic. | // Set addrman addr placement to be deterministic. | ||||
MakeDeterministic(); | MakeDeterministic(); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 625 Lines • Show Last 20 Lines |