diff --git a/src/policy/ephemeral_policy.cpp b/src/policy/ephemeral_policy.cpp index 6854822e351..e0b96d32bb6 100644 --- a/src/policy/ephemeral_policy.cpp +++ b/src/policy/ephemeral_policy.cpp @@ -33,7 +33,6 @@ std::optional CheckEphemeralSpends(const Package& package, CFeeRate dust_r } for (const auto& tx : package) { - Txid txid = tx->GetHash(); std::unordered_set processed_parent_set; std::unordered_set unspent_parent_dust; @@ -70,7 +69,7 @@ std::optional CheckEphemeralSpends(const Package& package, CFeeRate dust_r } if (!unspent_parent_dust.empty()) { - return txid; + return tx->GetHash(); } }