Skip to content
Bitcoin Roots

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. The two line-number columns refer to before and after.

src/test/policyestimator_tests.cpp CHANGED
@@ -22,6 +22,7 @@ BOOST_AUTO_TEST_CASE(BypassedPolicyIsNotEstimated)
22
22
  CBlockPolicyEstimator estimator{FeeestPath(*m_node.args), DEFAULT_ACCEPT_STALE_FEE_ESTIMATES};
23
23
  CMutableTransaction tx;
24
24
  tx.vin.resize(1);
25
+ tx.vin[0].prevout.n = 0;
25
26
  tx.vout.emplace_back(COIN, CScript{});
26
27
  for (const auto& ignored : {empty_ignore_rejects, ignore_rejects_type{"mempool full"}}) {
27
28
  const auto txref{MakeTransactionRef(tx)};