mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
fuzz: Add process_messages harness
This commit is contained in:
parent
96a30b98c9
commit
fa6a008434
7 changed files with 164 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue