Skip to content

Commit

Permalink
increase max nonce by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
laruh committed Apr 26, 2024
1 parent fe498fa commit 18fa53e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm2src/coins/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5074,11 +5074,12 @@ impl EthCoin {
return ERR!("Couldn't get nonce after 5 errored attempts, aborting");
}
} else {
let max = nonces
let mut max = nonces
.iter()
.map(|(n, _)| *n)
.max()
.expect("nonces should not be empty!");
max = max + 1;
break Ok((
max,
nonces
Expand Down

0 comments on commit 18fa53e

Please sign in to comment.