Skip to content

Commit b4b01d3

Browse files
committed
[refactor] updating miniminer comments to be more accurate
1 parent 83933ef commit b4b01d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/node/mini_miner.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ class MiniMiner
137137
*/
138138
MiniMiner(const CTxMemPool& mempool, const std::vector<COutPoint>& outpoints);
139139

140-
/** Constructor in which the MiniMinerMempoolEntry entries have been constructed manually,
141-
* presumably because these transactions are not in the mempool (yet). It is assumed that all
142-
* entries are unique and their values are correct, otherwise results computed by MiniMiner may
143-
* be incorrect. Callers should check IsReadyToCalculate() after construction.
140+
/** Constructor in which the MiniMinerMempoolEntry entries have been constructed manually.
141+
* It is assumed that all entries are unique and their values are correct, otherwise results
142+
* computed by MiniMiner may be incorrect. Callers should check IsReadyToCalculate() after
143+
* construction.
144144
* @param[in] descendant_caches A map from each transaction to the set of txids of this
145145
* transaction's descendant set, including itself. Each tx in
146146
* manual_entries must have a corresponding entry in this map, and

src/test/miniminer_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ BOOST_FIXTURE_TEST_CASE(manual_ctor, TestChain100Setup)
646646
CTxMemPool& pool = *Assert(m_node.mempool);
647647
LOCK2(cs_main, pool.cs);
648648
{
649-
// 3 pairs of fee-bumping grandparent + parent, plus 1 low-feerate child.
649+
// 3 pairs of grandparent + fee-bumping parent, plus 1 low-feerate child.
650650
// 0 fee + high fee
651651
auto grandparent_zero_fee = make_tx({{m_coinbase_txns.at(0)->GetHash(), 0}}, 1);
652652
auto parent_high_feerate = make_tx({{grandparent_zero_fee->GetHash(), 0}}, 1);
@@ -692,7 +692,7 @@ BOOST_FIXTURE_TEST_CASE(manual_ctor, TestChain100Setup)
692692
BOOST_CHECK_EQUAL(sequences.at(grandparent_double_low_feerate->GetHash()), 1);
693693
BOOST_CHECK_EQUAL(sequences.at(parent_med_feerate->GetHash()), 1);
694694

695-
// CPFP low + med
695+
// CPFP low + double low
696696
BOOST_CHECK_EQUAL(sequences.at(grandparent_low_feerate->GetHash()), 2);
697697
BOOST_CHECK_EQUAL(sequences.at(parent_double_low_feerate->GetHash()), 2);
698698

0 commit comments

Comments
 (0)