wallet: don't include unconfirmed v3 txs with children in available coins

This commit is contained in:
ishaanam
2025-07-08 15:09:16 -04:00
parent ec2676becd
commit 2e9617664e
3 changed files with 40 additions and 0 deletions

View File

@@ -390,8 +390,11 @@ CoinsResult AvailableCoins(const CWallet& wallet,
if (nDepth == 0 && params.check_version_trucness) {
if (coinControl->m_version == TRUC_VERSION) {
if (wtx.tx->version != TRUC_VERSION) continue;
// this unconfirmed v3 transaction already has a child
if (wtx.truc_child_in_mempool.has_value()) continue;
} else {
if (wtx.tx->version == TRUC_VERSION) continue;
Assume(!wtx.truc_child_in_mempool.has_value());
}
}