v30.3-roots.1 · Commit 57: [PATCH 57/68] test: initialize estimator fixture outpoint index
src/test/policyestimator_tests.cpp
Before: src/test/policyestimator_tests.cpp · After: src/test/policyestimator_tests.cpp
File metadata
index 81bb32914dac46738f72aef6e27c78eb3a89882d..daef94fcb6e88d919dd7d6ca0b3cabf49e4abf66 100644
Download original patch · Release notes
Diff rows 1–7 of 7. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/test/policyestimator_tests.cpp
CHANGED
|
@@ -22,6 +22,7 @@ BOOST_AUTO_TEST_CASE(BypassedPolicyIsNotEstimated)
|
|
| 22 |
CBlockPolicyEstimator estimator{FeeestPath(*m_node.args), DEFAULT_ACCEPT_STALE_FEE_ESTIMATES};
|
| 23 |
CMutableTransaction tx;
|
| 24 |
tx.vin.resize(1);
|
|
|
|
| 25 |
tx.vout.emplace_back(COIN, CScript{});
|
| 26 |
for (const auto& ignored : {empty_ignore_rejects, ignore_rejects_type{"mempool full"}}) {
|
| 27 |
const auto txref{MakeTransactionRef(tx)};
|
|
|
|
| 22 |
CBlockPolicyEstimator estimator{FeeestPath(*m_node.args), DEFAULT_ACCEPT_STALE_FEE_ESTIMATES};
|
| 23 |
CMutableTransaction tx;
|
| 24 |
tx.vin.resize(1);
|
| 25 |
+
tx.vin[0].prevout.n = 0;
|
| 26 |
tx.vout.emplace_back(COIN, CScript{});
|
| 27 |
for (const auto& ignored : {empty_ignore_rejects, ignore_rejects_type{"mempool full"}}) {
|
| 28 |
const auto txref{MakeTransactionRef(tx)};
|