Bitcoin ABC  0.24.7
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)
 
static CDataStream CreateVersionMessage (int64_t now, CAddress addrTo, CAddress addrFrom, int32_t start_height, uint32_t nVersion, uint64_t nonce=0, std::string user_agent="/Bitcoin ABC:0.0.0(seeder)/")
 
 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 130 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 94 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 77 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 122 of file p2p_messaging_tests.cpp.

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

◆ CreateVersionMessage()

static CDataStream CreateVersionMessage ( int64_t  now,
CAddress  addrTo,
CAddress  addrFrom,
int32_t  start_height,
uint32_t  nVersion,
uint64_t  nonce = 0,
std::string  user_agent = "/Bitcoin ABC:0.0.0(seeder)/" 
)
static

Definition at line 63 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 75 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.