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:
parent
87b26e3dc0
commit
d9cfa5fc4e
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue