![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <txgraph.h>#include <random.h>#include <boost/test/unit_test.hpp>#include <memory>#include <vector>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (txgraph_trim_zigzag) | |
| BOOST_AUTO_TEST_CASE (txgraph_trim_flower) | |
| BOOST_AUTO_TEST_CASE (txgraph_trim_huge) | |
| BOOST_AUTO_TEST_CASE (txgraph_trim_big_singletons) | |
| BOOST_AUTO_TEST_CASE (txgraph_chunk_chain) | |
| BOOST_AUTO_TEST_CASE (txgraph_staging) | |
| BOOST_AUTO_TEST_CASE | ( | txgraph_chunk_chain | ) |
| BOOST_AUTO_TEST_CASE | ( | txgraph_staging | ) |
| BOOST_AUTO_TEST_CASE | ( | txgraph_trim_big_singletons | ) |
| BOOST_AUTO_TEST_CASE | ( | txgraph_trim_flower | ) |
The maximum cluster count used in this test.
The number of "top" transactions, which come from disconnected blocks. These are re-added to the mempool and, connecting them to the already-in-mempool transactions, we discover the resulting cluster is oversized.
The total number of transactions in this test.
Set a very large cluster size limit so that only the count limit is triggered.
Definition at line 92 of file txgraph_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | txgraph_trim_huge | ) |
The maximum cluster count used in this test.
The number of "top" (from-block) chains of transactions.
The number of transactions per top chain.
The (maximum) number of dependencies per bottom transaction.
The number of bottom transactions that are expected to be created.
The total number of transactions created in this test.
Set a very large cluster size limit so that only the count limit is triggered.
Refs to all top transactions.
Refs to all bottom transactions.
Indexes into top_refs for some transaction of each component, in arbitrary order. Initially these are the last transactions in each chains, but as bottom transactions are added, entries will be removed when they get merged, and randomized.
Definition at line 151 of file txgraph_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | txgraph_trim_zigzag | ) |
The maximum cluster count used in this test.
The number of "bottom" transactions, which are in the mempool already.
The number of "top" transactions, which come from disconnected blocks. These are re-added to the mempool and, while connecting them to the already-in-mempool transactions, we discover the resulting cluster is oversized.
The total number of transactions in the test.
Set a very large cluster size limit so that only the count limit is triggered.
Definition at line 29 of file txgraph_tests.cpp.