From 0f0a01a742448fa9db67752722fed7d1c028117b Mon Sep 17 00:00:00 2001 From: LLFourn Date: Fri, 5 Nov 2021 13:30:41 +1100 Subject: [PATCH] s/vin/vout/ --- src/blockchain/script_sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockchain/script_sync.rs b/src/blockchain/script_sync.rs index f78a6bce..e7ae2763 100644 --- a/src/blockchain/script_sync.rs +++ b/src/blockchain/script_sync.rs @@ -170,7 +170,7 @@ impl<'a, D: BatchDatabase> TxReq<'a, D> { let tx_details: Vec = tx_details .into_iter() .zip(self.state.tx_needed.iter()) - .map(|((vin, tx), txid)| { + .map(|((vout, tx), txid)| { debug!("found tx_details for {}", txid); assert_eq!(tx.txid(), *txid); let mut sent: u64 = 0; @@ -178,7 +178,7 @@ impl<'a, D: BatchDatabase> TxReq<'a, D> { let mut inputs_sum: u64 = 0; let mut outputs_sum: u64 = 0; - for (txout, input) in vin.into_iter().zip(tx.input.iter()) { + for (txout, input) in vout.into_iter().zip(tx.input.iter()) { let txout = match txout { Some(txout) => txout, None => {