0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-04 13:55:23 -05:00

CheckEphemeralSpends: no need to iterate inputs if no parent dust

This commit is contained in:
Greg Sanders 2024-11-12 13:26:34 -05:00
parent 87b26e3dc0
commit d9cfa5fc4e

View file

@ -72,6 +72,10 @@ std::optional<Txid> CheckEphemeralSpends(const Package& package, CFeeRate dust_r
processed_parent_set.insert(parent_txid);
}
if (unspent_parent_dust.empty()) {
continue;
}
// Now that we have gathered parents' dust, make sure it's spent
// by the child
for (const auto& tx_input : tx->vin) {