Bitcoin Core  27.99.0
P2P Digital Currency
Functions
denialofservice_tests.cpp File Reference
#include <banman.h>
#include <chainparams.h>
#include <common/args.h>
#include <net.h>
#include <net_processing.h>
#include <pubkey.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <serialize.h>
#include <test/util/net.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <timedata.h>
#include <util/string.h>
#include <util/time.h>
#include <validation.h>
#include <array>
#include <stdint.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for denialofservice_tests.cpp:

Go to the source code of this file.

Functions

static CService ip (uint32_t i)
 
 BOOST_AUTO_TEST_CASE (outbound_slow_chain_eviction)
 
static void AddRandomOutboundPeer (NodeId &id, std::vector< CNode * > &vNodes, PeerManager &peerLogic, ConnmanTestMsg &connman, ConnectionType connType, bool onion_peer=false)
 
 BOOST_AUTO_TEST_CASE (stale_tip_peer_management)
 
 BOOST_AUTO_TEST_CASE (block_relay_only_eviction)
 
 BOOST_AUTO_TEST_CASE (peer_discouragement)
 
 BOOST_AUTO_TEST_CASE (DoS_bantime)
 

Function Documentation

◆ AddRandomOutboundPeer()

static void AddRandomOutboundPeer ( NodeId id,
std::vector< CNode * > &  vNodes,
PeerManager peerLogic,
ConnmanTestMsg connman,
ConnectionType  connType,
bool  onion_peer = false 
)
static

Definition at line 111 of file denialofservice_tests.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( block_relay_only_eviction  )

Definition at line 240 of file denialofservice_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( DoS_bantime  )

Definition at line 401 of file denialofservice_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( outbound_slow_chain_eviction  )

Definition at line 46 of file denialofservice_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( peer_discouragement  )

Definition at line 299 of file denialofservice_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( stale_tip_peer_management  )

Definition at line 142 of file denialofservice_tests.cpp.

Here is the call graph for this function:

◆ ip()

static CService ip ( uint32_t  i)
static

Definition at line 29 of file denialofservice_tests.cpp.

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