v31.1-roots.1 · Commit 3: [PATCH 03/17] feat(policy): preserve cluster accounting and repair dynamic dust
src/test/txpackage_tests.cpp
Before: src/test/txpackage_tests.cpp · After: src/test/txpackage_tests.cpp
File metadata
index a96bb9001a35cece3c4634f4b5d2ec891ac18dd7..add94e0caaa7b72d87d38874e150216caaef197a 100644
Download original patch · Release notes
Diff rows 1–23 of 23. 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/txpackage_tests.cpp
CHANGED
|
@@ -909,10 +909,10 @@ BOOST_AUTO_TEST_CASE(package_cpfp_tests)
|
|
|
909
909
|
} else {
|
|
910
910
|
BOOST_CHECK_EQUAL(submit_cpfp_deprio.m_state.GetResult(), PackageValidationResult::PCKG_TX);
|
|
911
911
|
BOOST_CHECK_EQUAL(submit_cpfp_deprio.m_tx_results.find(tx_parent->GetWitnessHash())->second.m_state.GetResult(),
|
|
912
|
-
TxValidationResult::TX_RECONSIDERABLE);
|
|
912
|
+
TxValidationResult::TX_MEMPOOL_POLICY);
|
|
913
913
|
BOOST_CHECK_EQUAL(submit_cpfp_deprio.m_tx_results.find(tx_child->GetWitnessHash())->second.m_state.GetResult(),
|
|
914
|
-
TxValidationResult::TX_RECONSIDERABLE);
|
|
915
|
-
BOOST_CHECK_EQUAL(submit_cpfp_deprio.m_tx_results.find(tx_parent->GetWitnessHash())->second.m_state.GetRejectReason(), "mempool min fee not met");
|
|
914
|
+
TxValidationResult::TX_MISSING_INPUTS);
|
|
915
|
+
BOOST_CHECK_EQUAL(submit_cpfp_deprio.m_tx_results.find(tx_parent->GetWitnessHash())->second.m_state.GetRejectReason(), "min relay fee not met");
|
|
916
916
|
BOOST_CHECK_EQUAL(m_node.mempool->size(), expected_pool_size);
|
|
917
917
|
}
|
|
918
918
|
}
|
|
@@ -1068,8 +1068,8 @@ BOOST_AUTO_TEST_CASE(package_cpfp_tests)
|
|
|
1068
1068
|
strprintf("rich parent: expected fee %s, got %s", high_parent_fee, it_parent->second.m_base_fees.value()));
|
|
1069
1069
|
BOOST_CHECK(it_parent->second.m_effective_feerate == CFeeRate(high_parent_fee, GetVirtualTransactionSize(*tx_parent_rich)));
|
|
1070
1070
|
BOOST_CHECK_EQUAL(it_child->second.m_result_type, MempoolAcceptResult::ResultType::INVALID);
|
|
1071
|
-
BOOST_CHECK_EQUAL(it_child->second.m_state.GetResult(), TxValidationResult::TX_RECONSIDERABLE);
|
|
1072
|
-
BOOST_CHECK_EQUAL(it_child->second.m_state.GetRejectReason(), "mempool min fee not met");
|
|
1071
|
+
BOOST_CHECK_EQUAL(it_child->second.m_state.GetResult(), TxValidationResult::TX_MEMPOOL_POLICY);
|
|
1072
|
+
BOOST_CHECK_EQUAL(it_child->second.m_state.GetRejectReason(), "min relay fee not met");
|
|
1073
1073
|
}
|
|
1074
1074
|
expected_pool_size += 1;
|
|
1075
1075
|
BOOST_CHECK_EQUAL(m_node.mempool->size(), expected_pool_size);
|