Skip to content

Commit 0f0a01a

Browse files
committed
s/vin/vout/
1 parent 1a64fd9 commit 0f0a01a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blockchain/script_sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ impl<'a, D: BatchDatabase> TxReq<'a, D> {
170170
let tx_details: Vec<TransactionDetails> = tx_details
171171
.into_iter()
172172
.zip(self.state.tx_needed.iter())
173-
.map(|((vin, tx), txid)| {
173+
.map(|((vout, tx), txid)| {
174174
debug!("found tx_details for {}", txid);
175175
assert_eq!(tx.txid(), *txid);
176176
let mut sent: u64 = 0;
177177
let mut received: u64 = 0;
178178
let mut inputs_sum: u64 = 0;
179179
let mut outputs_sum: u64 = 0;
180180

181-
for (txout, input) in vin.into_iter().zip(tx.input.iter()) {
181+
for (txout, input) in vout.into_iter().zip(tx.input.iter()) {
182182
let txout = match txout {
183183
Some(txout) => txout,
184184
None => {

0 commit comments

Comments
 (0)