![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <node/mini_miner.h>#include <random.h>#include <txmempool.h>#include <util/time.h>#include <test/util/setup_common.h>#include <test/util/txmempool.h>#include <boost/test/unit_test.hpp>#include <optional>#include <vector>Go to the source code of this file.
Functions | |
| static CTransactionRef | make_tx (const std::vector< COutPoint > &inputs, size_t num_outputs) |
| static bool | sanity_check (const std::vector< CTransactionRef > &transactions, const std::map< COutPoint, CAmount > &bumpfees) |
| template<typename Key, typename Value> | |
| Value | Find (const std::map< Key, Value > &map, const Key &key) |
| BOOST_FIXTURE_TEST_CASE (miniminer_negative, TestChain100Setup) | |
| BOOST_FIXTURE_TEST_CASE (miniminer_1p1c, TestChain100Setup) | |
| BOOST_FIXTURE_TEST_CASE (miniminer_overlap, TestChain100Setup) | |
| BOOST_FIXTURE_TEST_CASE (calculate_cluster, TestChain100Setup) | |
| BOOST_FIXTURE_TEST_CASE (manual_ctor, TestChain100Setup) | |
Variables | |
| const CAmount | low_fee {CENT/2000} |
| const CAmount | med_fee {CENT/200} |
| const CAmount | high_fee {CENT/10} |
| BOOST_FIXTURE_TEST_CASE | ( | calculate_cluster | , |
| TestChain100Setup | ) |
| BOOST_FIXTURE_TEST_CASE | ( | manual_ctor | , |
| TestChain100Setup | ) |
| BOOST_FIXTURE_TEST_CASE | ( | miniminer_1p1c | , |
| TestChain100Setup | ) |
| BOOST_FIXTURE_TEST_CASE | ( | miniminer_negative | , |
| TestChain100Setup | ) |
| BOOST_FIXTURE_TEST_CASE | ( | miniminer_overlap | , |
| TestChain100Setup | ) |
| Value Find | ( | const std::map< Key, Value > & | map, |
| const Key & | key ) |
|
inlinestatic |
Definition at line 23 of file miniminer_tests.cpp.
|
inlinestatic |
Definition at line 20 of file miniminer_tests.cpp.
Definition at line 18 of file miniminer_tests.cpp.
Definition at line 19 of file miniminer_tests.cpp.