mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 14:40:12 +01:00
wallet: don't include unconfirmed v3 txs with children in available coins
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user