Fix handling of `nonce too low` error (#643)

* fix: nonce too low from error as debug

* chore: cargo fmt

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
Daniil Naumetc 2021-12-03 18:08:53 +00:00 committed by GitHub
parent 7da5b64cfd
commit 9fc75ef245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ macro_rules! poll_broadcast_fut {
Poll::Ready(Err(e)) => { Poll::Ready(Err(e)) => {
// kludge. Prevents erroring on "nonce too low" which indicates // kludge. Prevents erroring on "nonce too low" which indicates
// a previous escalation confirmed during this broadcast attempt // a previous escalation confirmed during this broadcast attempt
if format!("{}", e).contains("nonce too low") { if format!("{:?}", e).contains("nonce too low") {
check_all_receipts!($cx, $this); check_all_receipts!($cx, $this);
} else { } else {
tracing::error!( tracing::error!(