diff options
| author | MarcoFalke <[email protected]> | 2020-04-09 00:14:23 +0800 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-04-09 00:14:31 +0800 |
| commit | 3410fe688739f9fc7545043d052dd77fb35de573 (patch) | |
| tree | 649337388ff67ec05a4475f9febbf0284be942a5 /src/test/util/setup_common.cpp | |
| parent | Merge #18533: scripted-diff: Replace strCommand with msg_type (diff) | |
| parent | fuzz: Add process_messages harness (diff) | |
| download | discoin-3410fe688739f9fc7545043d052dd77fb35de573.tar.xz discoin-3410fe688739f9fc7545043d052dd77fb35de573.zip | |
Merge #18521: fuzz: Add process_messages harness
fa6a00843447d53a5708ea3a629b9150cfe58be2 fuzz: Add process_messages harness (MarcoFalke)
Pull request description:
ACKs for top commit:
practicalswift:
Tested ACK fa6a00843447d53a5708ea3a629b9150cfe58be2
Tree-SHA512: 2d8788308c7f45c97ca003378f58a9d51f51265958557a65e5e505b1666b4cb928f0d010622870175090a0ad25e2d10b41f26f4eef14b6ff334a024baa250f8c
Diffstat (limited to 'src/test/util/setup_common.cpp')
| -rw-r--r-- | src/test/util/setup_common.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index d684b9778..a4d012692 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -139,6 +139,11 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha m_node.banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", nullptr, DEFAULT_MISBEHAVING_BANTIME); m_node.connman = MakeUnique<CConnman>(0x1337, 0x1337); // Deterministic randomness for tests. m_node.peer_logic = MakeUnique<PeerLogicValidation>(m_node.connman.get(), m_node.banman.get(), *m_node.scheduler, *m_node.mempool); + { + CConnman::Options options; + options.m_msgproc = m_node.peer_logic.get(); + m_node.connman->Init(options); + } } TestingSetup::~TestingSetup() |