Bitcoin ABC  0.28.12
P2P Digital Currency
Classes | Functions | Variables
p2p_messaging_tests.cpp File Reference
#include <chainparams.h>
#include <protocol.h>
#include <seeder/bitcoin.h>
#include <seeder/db.h>
#include <seeder/test/util.h>
#include <serialize.h>
#include <streams.h>
#include <util/system.h>
#include <version.h>
#include <boost/test/unit_test.hpp>
#include <cstdint>
#include <memory>
#include <ostream>
#include <string>
#include <vector>
Include dependency graph for p2p_messaging_tests.cpp:

Go to the source code of this file.

Classes

struct  SeederTestingSetup
 

Functions

std::ostream & operator<< (std::ostream &os, const PeerMessagingState &state)
 
 BOOST_AUTO_TEST_CASE (process_version_msg)
 
 BOOST_AUTO_TEST_CASE (process_verack_msg)
 
static CDataStream CreateAddrMessage (std::vector< CAddress > sendAddrs, uint32_t nVersion=INIT_PROTO_VERSION)
 
 BOOST_AUTO_TEST_CASE (process_addr_msg)
 

Variables

static const uint16_t SERVICE_PORT = 18444
 
static const int SEEDER_INIT_VERSION = 0
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( process_addr_msg  )

Definition at line 124 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( process_verack_msg  )

Definition at line 88 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( process_version_msg  )

Definition at line 64 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ CreateAddrMessage()

static CDataStream CreateAddrMessage ( std::vector< CAddress sendAddrs,
uint32_t  nVersion = INIT_PROTO_VERSION 
)
static

Definition at line 116 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const PeerMessagingState state 
)

Definition at line 23 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

Variable Documentation

◆ SEEDER_INIT_VERSION

const int SEEDER_INIT_VERSION = 0
static

Definition at line 62 of file p2p_messaging_tests.cpp.

◆ SERVICE_PORT

const uint16_t SERVICE_PORT = 18444
static

Definition at line 44 of file p2p_messaging_tests.cpp.