Skip to content

Commit caecc44

Browse files
authored
fix off by 1 (#30)
1 parent c932232 commit caecc44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

executors/src/eoa/store/atomic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,15 +418,15 @@ impl AtomicEoaExecutorStore {
418418
// Update cached transaction count
419419
pipeline.set(&tx_count_key, current_chain_tx_count);
420420

421-
if current_chain_tx_count + 1 > optimistic_nonce {
421+
if current_chain_tx_count > optimistic_nonce {
422422
tracing::warn!(
423423
current_chain_tx_count = current_chain_tx_count,
424424
optimistic_nonce = optimistic_nonce,
425425
"Optimistic nonce was behind fresh chain transaction count, updating to match"
426426
);
427427
pipeline.set(
428428
self.optimistic_transaction_count_key_name(),
429-
current_chain_tx_count + 1,
429+
current_chain_tx_count,
430430
);
431431
}
432432

0 commit comments

Comments
 (0)