Skip to content

L1: understand why we were spaming logs with Nonce for account too low or Attempted to replace a pooled transaction #4842

@rodrigo-o

Description

@rodrigo-o

The logs were full of peer mesages of txs unable to be added to the mempool:

2025-10-10T21:26:44.430287Z  WARN ethrex_p2p::rlpx::utils: erigon/[0xbf33…8627(49.12.130.92:30010)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                    
2025-10-10T21:26:44.430605Z  WARN ethrex_p2p::rlpx::utils: erigon/[0xbf33…8627(49.12.130.92:30010)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                    
2025-10-10T21:26:44.430889Z  WARN ethrex_p2p::rlpx::utils: erigon/[0xbf33…8627(49.12.130.92:30010)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                    
2025-10-10T21:26:44.431204Z  WARN ethrex_p2p::rlpx::utils: erigon/[0xbf33…8627(49.12.130.92:30010)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                    
2025-10-10T21:26:44.431671Z  WARN ethrex_p2p::rlpx::utils: erigon/[0xbf33…8627(49.12.130.92:30010)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                    
2025-10-10T21:26:44.557946Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x9ef4…bfc0(208.91.111.153:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                    
2025-10-10T21:26:44.605518Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x8920…2618(54.209.213.104:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                    
2025-10-10T21:26:44.629493Z  WARN ethrex_p2p::rlpx::utils: Geth/[0xd464…a086(3.238.31.12:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                       
2025-10-10T21:26:44.652605Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x8cb3…bf1f(202.90.244.19:30303)]: Error adding transaction common: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                              
2025-10-10T21:26:44.761911Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x0965…3f16(136.49.53.169:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.765399Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.768167Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.770387Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.770697Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.771131Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.771583Z  WARN ethrex_p2p::rlpx::utils: Geth/[0xd54b…0100(99.246.19.166:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.773184Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.775012Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.776434Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1cba…1319(67.220.95.8:50122)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                       
2025-10-10T21:26:44.777130Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.777380Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.777695Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.777992Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.778375Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.778624Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.778901Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.779190Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.779437Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.779770Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.780096Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.780343Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.780580Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.780832Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.781119Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.781398Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.785327Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.794038Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.794392Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.794971Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.795556Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.796150Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.797736Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.798002Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.799506Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.799737Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.804065Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.805917Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.806449Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.806656Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.808448Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.808863Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction                                                                                                                                                                     
2025-10-10T21:26:44.809873Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.810081Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.810286Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Nonce for account too low                                                                                                                                                                                                                     
2025-10-10T21:26:44.811060Z  WARN ethrex_p2p::rlpx::utils: Geth/[0x1575…a597(5.181.157.139:30303)]: Error adding transaction: Attempted to replace a pooled transaction with an underpriced transaction 

This was constant, so it begs the questions if we are receiving the same transactions again and again, or they were actually a constant inflow of new transactions that needed to be discarded. After #4841 we'll need to reactivate logs to see this and make sure they are different txs and not the same again and again. for that we'll need to add more info to the logs, like the tx hash and nonce.

Right now my best guess is that we may be discarding txs from the mempool if we get to the 10k limit and then recieve again txs that we already had or added just yest in a new block. We need to test and double check this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    L1Ethereum clientp2pIssues related to p2p network

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions