PIVX Core  5.6.99
P2P Digital Currency
Functions
mempool_tests.cpp File Reference
#include "test/test_pivx.h"
#include "policy/feerate.h"
#include "txmempool.h"
#include "util/system.h"
#include <boost/test/unit_test.hpp>
Include dependency graph for mempool_tests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (MempoolRemoveTest)
 
template<typename name >
void CheckSort (CTxMemPool &pool, std::vector< std::string > &sortedOrder)
 
 BOOST_AUTO_TEST_CASE (MempoolIndexingTest)
 
 BOOST_AUTO_TEST_CASE (MempoolAncestorIndexingTest)
 
 BOOST_AUTO_TEST_CASE (MempoolSizeLimitTest)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( MempoolAncestorIndexingTest  )

Definition at line 318 of file mempool_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( MempoolIndexingTest  )

tx8 and tx9 should both now be sorted higher Final order after tx10 is added:

tx3 = 0 (1) tx5 = 10000 (1) tx1 = 10000 (1) tx4 = 15000 (1) tx2 = 20000 (1) tx9 = 200k (2 txs) tx8 = 200k (2 txs) tx10 = 200k (1 tx) tx6 = 2.2M (5 txs) tx7 = 2.2M (4 txs)

Definition at line 117 of file mempool_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( MempoolRemoveTest  )

Definition at line 15 of file mempool_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( MempoolSizeLimitTest  )

Definition at line 429 of file mempool_tests.cpp.

◆ CheckSort()

template<typename name >
void CheckSort ( CTxMemPool pool,
std::vector< std::string > &  sortedOrder 
)

Definition at line 107 of file mempool_tests.cpp.

Here is the call graph for this function: