mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 06:32:33 +01: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);
|
processed_parent_set.insert(parent_txid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unspent_parent_dust.empty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Now that we have gathered parents' dust, make sure it's spent
|
// Now that we have gathered parents' dust, make sure it's spent
|
||||||
// by the child
|
// by the child
|
||||||
for (const auto& tx_input : tx->vin) {
|
for (const auto& tx_input : tx->vin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user