Refactor code to avoid incorrect clippy::unnecessary_to_owned lint (#3270)
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
This commit is contained in:
parent
6814525a7a
commit
a8d2e45e08
|
@ -551,7 +551,8 @@ where
|
|||
let mut spent_outputs = HashMap::new();
|
||||
|
||||
// fixup the transparent spends
|
||||
for mut input in transaction.inputs().to_vec().into_iter() {
|
||||
let original_inputs = transaction.inputs().to_vec();
|
||||
for mut input in original_inputs.into_iter() {
|
||||
if input.outpoint().is_some() {
|
||||
// the transparent chain value pool is the sum of unspent UTXOs,
|
||||
// so we don't need to check it separately, because we only spend unspent UTXOs
|
||||
|
|
Loading…
Reference in New Issue