mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 13:43:43 +01:00
unit test: check tx4 conflict error message
This commit is contained in:
@@ -261,7 +261,7 @@ BOOST_FIXTURE_TEST_CASE(rbf_helper_functions, TestChain100Setup)
|
|||||||
// Tests for CheckConflictTopology
|
// Tests for CheckConflictTopology
|
||||||
|
|
||||||
// Tx4 has 23 descendants
|
// Tx4 has 23 descendants
|
||||||
BOOST_CHECK(pool.CheckConflictTopology(set_34_cpfp).has_value());
|
BOOST_CHECK_EQUAL(pool.CheckConflictTopology(set_34_cpfp).value(), strprintf("%s has 23 descendants, max 1 allowed", entry4_high->GetSharedTx()->GetHash().ToString()));
|
||||||
|
|
||||||
// No descendants yet
|
// No descendants yet
|
||||||
BOOST_CHECK(pool.CheckConflictTopology({entry9_unchained}) == std::nullopt);
|
BOOST_CHECK(pool.CheckConflictTopology({entry9_unchained}) == std::nullopt);
|
||||||
|
|||||||
Reference in New Issue
Block a user