mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-27 19:39:02 +02:00
CheckEphemeralSpends: no need to iterate inputs if no parent dust
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user