From c08c0b56c2b28aebef089ca1a93214c5aa9495dd Mon Sep 17 00:00:00 2001 From: Maciej Skrzypkowski Date: Fri, 4 Oct 2024 16:25:37 +0200 Subject: [PATCH] move the noce increment --- Node/src/node/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Node/src/node/mod.rs b/Node/src/node/mod.rs index 1cd1daa..7de7d30 100644 --- a/Node/src/node/mod.rs +++ b/Node/src/node/mod.rs @@ -449,7 +449,6 @@ impl Node { let pending_tx_lists_bytes = if pending_tx_lists.tx_list_bytes.is_empty() { if let Some(lookahead_params) = lookahead_params { debug!("No pending transactions to preconfirm, force pushing lookahead"); - self.preconfirmation_helper.increment_nonce(); if let Err(err) = self .ethereum_l1 .execution_layer @@ -461,6 +460,8 @@ impl Node { } else { error!("Failed to force push lookahead: {}", err); } + } else { + self.preconfirmation_helper.increment_nonce(); } } // No transactions skip preconfirmation step