Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Functions | Variables
denialofservice_tests.cpp File Reference
#include <arith_uint256.h>
#include <banman.h>
#include <chainparams.h>
#include <net.h>
#include <net_processing.h>
#include <pubkey.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <script/standard.h>
#include <serialize.h>
#include <test/util/net.h>
#include <test/util/setup_common.h>
#include <txorphanage.h>
#include <util/string.h>
#include <util/system.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.

Classes

class  TxOrphanageTest
 

Functions

static CService ip (uint32_t i)
 
void UpdateLastBlockAnnounceTime (NodeId node, int64_t time_in_seconds)
 
 BOOST_AUTO_TEST_CASE (outbound_slow_chain_eviction)
 
static void AddRandomOutboundPeer (std::vector< CNode * > &vNodes, PeerManager &peerLogic, ConnmanTestMsg &connman)
 
 BOOST_AUTO_TEST_CASE (stale_tip_peer_management)
 
 BOOST_AUTO_TEST_CASE (peer_discouragement)
 
 BOOST_AUTO_TEST_CASE (DoS_bantime)
 
static void MakeNewKeyWithFastRandomContext (CKey &key)
 
 BOOST_AUTO_TEST_CASE (DoS_mapOrphans)
 

Variables

static NodeId id = 0
 

Function Documentation

◆ AddRandomOutboundPeer()

static void AddRandomOutboundPeer ( std::vector< CNode * > &  vNodes,
PeerManager peerLogic,
ConnmanTestMsg connman 
)
static

Definition at line 106 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 ( DoS_bantime  )

Definition at line 285 of file denialofservice_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( DoS_mapOrphans  )

Definition at line 339 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 51 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 191 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 119 of file denialofservice_tests.cpp.

Here is the call graph for this function:

◆ ip()

static CService ip ( uint32_t  i)
static

Definition at line 30 of file denialofservice_tests.cpp.

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

◆ MakeNewKeyWithFastRandomContext()

static void MakeNewKeyWithFastRandomContext ( CKey key)
static

Definition at line 331 of file denialofservice_tests.cpp.

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

◆ UpdateLastBlockAnnounceTime()

void UpdateLastBlockAnnounceTime ( NodeId  node,
int64_t  time_in_seconds 
)

Definition at line 1141 of file net_processing.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ id

NodeId id = 0
static

Definition at line 37 of file denialofservice_tests.cpp.