mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Merge bitcoin/bitcoin#12677: RPC: Add ancestor{count,size,fees} to listunspent output
6cb60f3e6ddoc/release-notes: Add new listunspent fields (Luke Dashjr)0be2f17ef5QA: Add tests for listunspent ancestor{count,size,fees} to mempool_packages (Luke Dashjr)6966e80f45RPC: Add ancestor{count,size,fees} to listunspent output (Luke Dashjr)3f77dfdaf0Expose ancestorsize and ancestorfees via getTransactionAncestry (Luke Dashjr) Pull request description: Requested by a user ACKs for top commit: prayank23: reACK6cb60f3e6dfjahr: Code review re-ACK6cb60f3e6dkiminuo: ACK [6cb60f3](6cb60f3e6d) achow101: Code Review ACK6cb60f3e6dnaumenkogs: ACK6cb60f3e6ddarosior: utACK6cb60f3e6dTree-SHA512: 5d16e5799558691e5853ab7ea2cc85514cb45da3ce69134d855c71845beef32ec6af5ab28d4462683e9800c8ea126f162773a9d3d5660edac08fd8edbfeda173
This commit is contained in:
@@ -575,11 +575,11 @@ public:
|
||||
// that Chain clients do not need to know about.
|
||||
return TransactionError::OK == err;
|
||||
}
|
||||
void getTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) override
|
||||
void getTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants, size_t* ancestorsize, CAmount* ancestorfees) override
|
||||
{
|
||||
ancestors = descendants = 0;
|
||||
if (!m_node.mempool) return;
|
||||
m_node.mempool->GetTransactionAncestry(txid, ancestors, descendants);
|
||||
m_node.mempool->GetTransactionAncestry(txid, ancestors, descendants, ancestorsize, ancestorfees);
|
||||
}
|
||||
void getPackageLimits(unsigned int& limit_ancestor_count, unsigned int& limit_descendant_count) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user