Skip to content
Bitcoin Roots

v29.4-roots.3 · Commit 3: [PATCH 03/30] policy: restore conservative relay and network controls

src/test/txpackage_tests.cpp

Before: src/test/txpackage_tests.cpp · After: src/test/txpackage_tests.cpp

File metadata
index 3c36b78260453c3bc13e4b1c498de183a113f82d..7243465d80071ec91eb52347b79bc28741885d92 100644

Download original patch · Release notes

Diff rows 1–8 of 8. 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/txpackage_tests.cpp CHANGED
@@ -434,7 +434,7 @@ BOOST_AUTO_TEST_CASE(package_submission_tests)
434
  auto it_parent = result_quit_early.m_tx_results.find(tx_parent_invalid->GetWitnessHash());
435
  auto it_child = result_quit_early.m_tx_results.find(tx_child->GetWitnessHash());
436
  BOOST_CHECK_EQUAL(it_parent->second.m_state.GetResult(), TxValidationResult::TX_WITNESS_MUTATED);
437
- BOOST_CHECK_EQUAL(it_parent->second.m_state.GetRejectReason(), "bad-witness-nonstandard");
438
  BOOST_CHECK_EQUAL(it_child->second.m_state.GetResult(), TxValidationResult::TX_MISSING_INPUTS);
439
  BOOST_CHECK_EQUAL(it_child->second.m_state.GetRejectReason(), "bad-txns-inputs-missingorspent");
440
  }
 
434
  auto it_parent = result_quit_early.m_tx_results.find(tx_parent_invalid->GetWitnessHash());
435
  auto it_child = result_quit_early.m_tx_results.find(tx_child->GetWitnessHash());
436
  BOOST_CHECK_EQUAL(it_parent->second.m_state.GetResult(), TxValidationResult::TX_WITNESS_MUTATED);
437
+ BOOST_CHECK_EQUAL(it_parent->second.m_state.GetRejectReason(), "bad-witness-nonwitness-input");
438
  BOOST_CHECK_EQUAL(it_child->second.m_state.GetResult(), TxValidationResult::TX_MISSING_INPUTS);
439
  BOOST_CHECK_EQUAL(it_child->second.m_state.GetRejectReason(), "bad-txns-inputs-missingorspent");
440
  }