We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d872277 commit ab58b2cCopy full SHA for ab58b2c
src/wallet/spend.cpp
@@ -403,6 +403,11 @@ CoinsResult AvailableCoins(const CWallet& wallet,
403
if (wtx.tx->version != TRUC_VERSION) continue;
404
// this unconfirmed v3 transaction already has a child
405
if (wtx.truc_child_in_mempool.has_value()) continue;
406
+
407
+ // this unconfirmed v3 transaction has a parent: spending would create a third generation
408
+ size_t ancestors, descendants;
409
+ wallet.chain().getTransactionAncestry(wtx.tx->GetHash(), ancestors, descendants);
410
+ if (ancestors > 1) continue;
411
} else {
412
if (wtx.tx->version == TRUC_VERSION) continue;
413
Assume(!wtx.truc_child_in_mempool.has_value());
0 commit comments