Skip to content

Commit 83933ef

Browse files
committed
[refactor] Miniminer var cached_descendants to descendants
Refactored a variable name to be less confusing
1 parent 43423fd commit 83933ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node/mini_miner.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,18 @@ MiniMiner::MiniMiner(const std::vector<MiniMinerMempoolEntry>& manual_entries,
154154
m_ready_to_calculate = false;
155155
return;
156156
}
157-
std::vector<MockEntryMap::iterator> cached_descendants;
157+
std::vector<MockEntryMap::iterator> descendants;
158158
for (const auto& desc_txid : desc_txids) {
159159
auto desc_it{m_entries_by_txid.find(desc_txid)};
160160
// Descendants should only include transactions with corresponding entries.
161161
if (!Assume(desc_it != m_entries_by_txid.end())) {
162162
m_ready_to_calculate = false;
163163
return;
164164
} else {
165-
cached_descendants.emplace_back(desc_it);
165+
descendants.emplace_back(desc_it);
166166
}
167167
}
168-
m_descendant_set_by_txid.emplace(txid, cached_descendants);
168+
m_descendant_set_by_txid.emplace(txid, descendants);
169169
}
170170
Assume(m_to_be_replaced.empty());
171171
Assume(m_requested_outpoints_by_txid.empty());

0 commit comments

Comments
 (0)