diff --git a/src/wallet/rpc/coins.cpp b/src/wallet/rpc/coins.cpp index 5dc3391ded7..1cf586ad009 100644 --- a/src/wallet/rpc/coins.cpp +++ b/src/wallet/rpc/coins.cpp @@ -663,9 +663,9 @@ RPCHelpMan listunspent() entry.pushKV("amount", ValueFromAmount(out.txout.nValue)); entry.pushKV("confirmations", out.depth); if (!out.depth) { - size_t ancestor_count, descendant_count, ancestor_size; + size_t ancestor_count, unused_cluster_count, ancestor_size; CAmount ancestor_fees; - pwallet->chain().getTransactionAncestry(out.outpoint.hash, ancestor_count, descendant_count, &ancestor_size, &ancestor_fees); + pwallet->chain().getTransactionAncestry(out.outpoint.hash, ancestor_count, unused_cluster_count, &ancestor_size, &ancestor_fees); if (ancestor_count) { entry.pushKV("ancestorcount", ancestor_count); entry.pushKV("ancestorsize", ancestor_size); diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index edde9234522..c91d0f47778 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -405,8 +405,8 @@ CoinsResult AvailableCoins(const CWallet& wallet, if (wtx.truc_child_in_mempool.has_value()) continue; // this unconfirmed v3 transaction has a parent: spending would create a third generation - size_t ancestors, descendants; - wallet.chain().getTransactionAncestry(wtx.tx->GetHash(), ancestors, descendants); + size_t ancestors, unused_cluster_count; + wallet.chain().getTransactionAncestry(wtx.tx->GetHash(), ancestors, unused_cluster_count); if (ancestors > 1) continue; } else { if (wtx.tx->version == TRUC_VERSION) continue;