Improve comments for getTransactionAncestry to reference cluster counts instead of descendants

This commit is contained in:
Suhas Daftuar 2025-11-25 12:58:28 -05:00
parent d97d6199ce
commit 957ae23241

View File

@ -221,8 +221,8 @@ public:
node::TxBroadcast broadcast_method,
std::string& err_string) = 0;
//! Calculate mempool ancestor and descendant counts for the given transaction.
virtual void getTransactionAncestry(const Txid& txid, size_t& ancestors, size_t& descendants, size_t* ancestorsize = nullptr, CAmount* ancestorfees = nullptr) = 0;
//! Calculate mempool ancestor and cluster counts for the given transaction.
virtual void getTransactionAncestry(const Txid& txid, size_t& ancestors, size_t& cluster_count, size_t* ancestorsize = nullptr, CAmount* ancestorfees = nullptr) = 0;
//! For each outpoint, calculate the fee-bumping cost to spend this outpoint at the specified
// feerate, including bumping its ancestors. For example, if the target feerate is 10sat/vbyte