Skip to content

Commit c377ae9

Browse files
committed
unit test: improve ImprovesFeerateDiagram coverage with one less vb case
1 parent d2bf923 commit c377ae9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/rbf_tests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ BOOST_FIXTURE_TEST_CASE(improves_feerate, TestChain100Setup)
393393
BOOST_CHECK(res2.value().second == "insufficient feerate: does not improve feerate diagram");
394394
pool.PrioritiseTransaction(entry1->GetSharedTx()->GetHash(), /*nFeeDelta=*/-1);
395395

396+
// With one less vB it does
397+
BOOST_CHECK(ImprovesFeerateDiagram(pool, {entry1}, {entry1, entry2}, tx1_fee + tx2_fee, tx1_size + tx2_size - 1) == std::nullopt);
398+
396399
// Adding a grandchild makes the cluster size 3, which is uncalculable
397400
const auto tx3 = make_tx(/*inputs=*/ {tx2}, /*output_values=*/ {995 * CENT});
398401
pool.addUnchecked(entry.Fee(normal_fee).FromTx(tx3));

0 commit comments

Comments
 (0)