Changeset View
Changeset View
Standalone View
Standalone View
src/test/policyestimator_tests.cpp
Show All 9 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(BlockPolicyEstimates) { | BOOST_AUTO_TEST_CASE(BlockPolicyEstimates) { | ||||
CTxMemPool mpool(CFeeRate(Amount(1000))); | CTxMemPool mpool; | ||||
TestMemPoolEntryHelper entry; | TestMemPoolEntryHelper entry; | ||||
Amount basefee(2000); | Amount basefee(2000); | ||||
Amount deltaFee(100); | Amount deltaFee(100); | ||||
std::vector<Amount> feeV; | std::vector<Amount> feeV; | ||||
// Populate vectors of increasing fees | // Populate vectors of increasing fees | ||||
for (int j = 0; j < 10; j++) { | for (int j = 0; j < 10; j++) { | ||||
feeV.push_back((j + 1) * basefee); | feeV.push_back((j + 1) * basefee); | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |