Nonce naming cleanup (#21336)

This commit is contained in:
Jack May
2021-11-18 16:07:17 -08:00
committed by GitHub
parent 1a7cefded7
commit 03c36d240a
7 changed files with 342 additions and 329 deletions

View File

@@ -38,8 +38,10 @@ pub fn find_and_send_votes(
execution_results, ..
} = tx_results;
if let Some(vote_sender) = vote_sender {
sanitized_txs.iter().zip(execution_results.iter()).for_each(
|(tx, (result, _nonce_rollback))| {
sanitized_txs
.iter()
.zip(execution_results.iter())
.for_each(|(tx, (result, _nonce))| {
if tx.is_simple_vote_transaction() && result.is_ok() {
if let Some(parsed_vote) =
vote_transaction::parse_sanitized_vote_transaction(tx)
@@ -49,7 +51,6 @@ pub fn find_and_send_votes(
}
}
}
},
);
});
}
}