Skip to content

Cannot process any tx when AccountQueue limit is reached #68

@bap2pecs

Description

@bap2pecs

System information

zkEVM Node version: CDK: v0.3.1-RC2
OS & Version: Ubuntu
Network: local devnet setup with https://github.com/Snapchain/zkValidium-quickstart/

Steps to reproduce the behaviour

we were using the polygon-cli tool to load test

polycli loadtest --verbosity 700 --chain-id 1001  --concurrency 1 --requests 6000 --rate-limit 6000 --mode i --rpc-url http://<REDACTED>:8123/  --private-key "<REDACTED>" --legacy 

and got

image
ERR Recorded an error while sending transactions error="nonce too high" nonce=5614 request time=552

The error was originated from https://github.com/0xPolygon/cdk-validium-node/blob/develop/pool/pool.go#L496 where AccountQueue was configured in the node config file (64 was used in the quickstart)

Expected behaviour

when AccountQueue limit is hit, the chain should just ignore new transactions from the sender and not add tx to the storage, until the old ones are processed.

the chain should continue to process other senders' transactions normally

Actual behaviour

The chain cannot process any transaction from any accounts. when I send transaction from other accounts, it's stuck in "pending" status on my MM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions