Skip to content

Commit

Permalink
s/vin/vout/
Browse files Browse the repository at this point in the history
  • Loading branch information
LLFourn committed Nov 9, 2021
1 parent 1a64fd9 commit 0f0a01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blockchain/script_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ impl<'a, D: BatchDatabase> TxReq<'a, D> {
let tx_details: Vec<TransactionDetails> = 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;
let mut received: u64 = 0;
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 => {
Expand Down

0 comments on commit 0f0a01a

Please sign in to comment.