Bitcoin ABC  0.26.3
P2P Digital Currency
Namespaces | Functions
peermanager_tests.cpp File Reference
#include <avalanche/delegationbuilder.h>
#include <avalanche/peermanager.h>
#include <avalanche/proofbuilder.h>
#include <avalanche/proofcomparator.h>
#include <avalanche/test/util.h>
#include <config.h>
#include <script/standard.h>
#include <util/time.h>
#include <util/translation.h>
#include <validation.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for peermanager_tests.cpp:

Go to the source code of this file.

Namespaces

 avalanche
 

Functions

 BOOST_AUTO_TEST_CASE (select_peer_linear)
 
 BOOST_AUTO_TEST_CASE (select_peer_dichotomic)
 
 BOOST_AUTO_TEST_CASE (select_peer_random)
 
static void addNodeWithScore (CChainState &active_chainstate, avalanche::PeerManager &pm, NodeId node, uint32_t score)
 
 BOOST_AUTO_TEST_CASE (peer_probabilities)
 
 BOOST_AUTO_TEST_CASE (remove_peer)
 
 BOOST_AUTO_TEST_CASE (compact_slots)
 
 BOOST_AUTO_TEST_CASE (node_crud)
 
 BOOST_AUTO_TEST_CASE (node_binding)
 
 BOOST_AUTO_TEST_CASE (node_binding_reorg)
 
 BOOST_AUTO_TEST_CASE (proof_conflict)
 
 BOOST_AUTO_TEST_CASE (immature_proofs)
 
 BOOST_AUTO_TEST_CASE (dangling_node)
 
 BOOST_AUTO_TEST_CASE (proof_accessors)
 
 BOOST_FIXTURE_TEST_CASE (conflicting_proof_rescan, NoCoolDownFixture)
 
 BOOST_FIXTURE_TEST_CASE (conflicting_proof_selection, NoCoolDownFixture)
 
 BOOST_AUTO_TEST_CASE (conflicting_immature_proofs)
 
 BOOST_FIXTURE_TEST_CASE (preferred_conflicting_proof, NoCoolDownFixture)
 
 BOOST_FIXTURE_TEST_CASE (update_next_conflict_time, NoCoolDownFixture)
 
 BOOST_FIXTURE_TEST_CASE (register_force_accept, NoCoolDownFixture)
 
 BOOST_FIXTURE_TEST_CASE (evicted_proof, NoCoolDownFixture)
 
 BOOST_AUTO_TEST_CASE (conflicting_proof_cooldown)
 
 BOOST_FIXTURE_TEST_CASE (reject_proof, NoCoolDownFixture)
 
 BOOST_AUTO_TEST_CASE (should_request_more_nodes)
 
 BOOST_AUTO_TEST_CASE (score_ordering)
 
 BOOST_FIXTURE_TEST_CASE (known_score_tracking, NoCoolDownFixture)
 
 BOOST_AUTO_TEST_CASE (connected_score_tracking)
 
 BOOST_FIXTURE_TEST_CASE (proof_radix_tree, NoCoolDownFixture)
 
 BOOST_AUTO_TEST_CASE (received_avaproofs)
 
 BOOST_FIXTURE_TEST_CASE (cleanup_dangling_proof, NoCoolDownFixture)
 
 BOOST_AUTO_TEST_CASE (register_proof_missing_utxo)
 
 BOOST_AUTO_TEST_CASE (proof_expiry)
 

Function Documentation

◆ addNodeWithScore()

static void addNodeWithScore ( CChainState active_chainstate,
avalanche::PeerManager pm,
NodeId  node,
uint32_t  score 
)
static

Definition at line 289 of file peermanager_tests.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [1/21]

BOOST_AUTO_TEST_CASE ( compact_slots  )

Definition at line 413 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/21]

BOOST_AUTO_TEST_CASE ( conflicting_immature_proofs  )

Definition at line 1054 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/21]

BOOST_AUTO_TEST_CASE ( conflicting_proof_cooldown  )

Definition at line 1267 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/21]

BOOST_AUTO_TEST_CASE ( connected_score_tracking  )

Definition at line 1661 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/21]

BOOST_AUTO_TEST_CASE ( dangling_node  )

Definition at line 826 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/21]

BOOST_AUTO_TEST_CASE ( immature_proofs  )

Definition at line 743 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/21]

BOOST_AUTO_TEST_CASE ( node_binding  )

Definition at line 508 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/21]

BOOST_AUTO_TEST_CASE ( node_binding_reorg  )

Definition at line 611 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/21]

BOOST_AUTO_TEST_CASE ( node_crud  )

Definition at line 444 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/21]

BOOST_AUTO_TEST_CASE ( peer_probabilities  )

Definition at line 297 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/21]

BOOST_AUTO_TEST_CASE ( proof_accessors  )

Definition at line 874 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/21]

BOOST_AUTO_TEST_CASE ( proof_conflict  )

Definition at line 674 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/21]

BOOST_AUTO_TEST_CASE ( proof_expiry  )

Definition at line 2050 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/21]

BOOST_AUTO_TEST_CASE ( received_avaproofs  )

Definition at line 1867 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/21]

BOOST_AUTO_TEST_CASE ( register_proof_missing_utxo  )

Definition at line 2037 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [16/21]

BOOST_AUTO_TEST_CASE ( remove_peer  )

Definition at line 335 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [17/21]

BOOST_AUTO_TEST_CASE ( score_ordering  )

Definition at line 1518 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [18/21]

BOOST_AUTO_TEST_CASE ( select_peer_dichotomic  )

Definition at line 204 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [19/21]

BOOST_AUTO_TEST_CASE ( select_peer_linear  )

Definition at line 152 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [20/21]

BOOST_AUTO_TEST_CASE ( select_peer_random  )

Definition at line 259 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [21/21]

BOOST_AUTO_TEST_CASE ( should_request_more_nodes  )

Definition at line 1422 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/10]

BOOST_FIXTURE_TEST_CASE ( cleanup_dangling_proof  ,
NoCoolDownFixture   
)

Definition at line 1890 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/10]

BOOST_FIXTURE_TEST_CASE ( conflicting_proof_rescan  ,
NoCoolDownFixture   
)

Definition at line 923 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/10]

BOOST_FIXTURE_TEST_CASE ( conflicting_proof_selection  ,
NoCoolDownFixture   
)

Definition at line 960 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [4/10]

BOOST_FIXTURE_TEST_CASE ( evicted_proof  ,
NoCoolDownFixture   
)

Definition at line 1235 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [5/10]

BOOST_FIXTURE_TEST_CASE ( known_score_tracking  ,
NoCoolDownFixture   
)

Definition at line 1544 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [6/10]

BOOST_FIXTURE_TEST_CASE ( preferred_conflicting_proof  ,
NoCoolDownFixture   
)

Definition at line 1101 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [7/10]

BOOST_FIXTURE_TEST_CASE ( proof_radix_tree  ,
NoCoolDownFixture   
)

Definition at line 1752 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [8/10]

BOOST_FIXTURE_TEST_CASE ( register_force_accept  ,
NoCoolDownFixture   
)

Definition at line 1169 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [9/10]

BOOST_FIXTURE_TEST_CASE ( reject_proof  ,
NoCoolDownFixture   
)

Definition at line 1339 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [10/10]

BOOST_FIXTURE_TEST_CASE ( update_next_conflict_time  ,
NoCoolDownFixture   
)

Definition at line 1134 of file peermanager_tests.cpp.

Here is the call graph for this function: