Changeset View
Changeset View
Standalone View
Standalone View
src/test/policyestimator_tests.cpp
Show All 11 Lines | |||||
#include <test/test_bitcoin.h> | #include <test/test_bitcoin.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(policyestimator_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(policyestimator_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(MempoolMinimumFeeEstimate) { | BOOST_AUTO_TEST_CASE(MempoolMinimumFeeEstimate) { | ||||
CTxMemPool mpool; | CTxMemPool mpool; | ||||
LOCK(mpool.cs); | LOCK2(cs_main, mpool.cs); | ||||
TestMemPoolEntryHelper entry; | TestMemPoolEntryHelper entry; | ||||
// Create a transaction template | // Create a transaction template | ||||
CScript garbage; | CScript garbage; | ||||
for (unsigned int i = 0; i < 128; i++) { | for (unsigned int i = 0; i < 128; i++) { | ||||
garbage.push_back('X'); | garbage.push_back('X'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |