sei-protocol / sei-chain

Apache License 2.0
2.69k stars 801 forks source link

[BUG] Nonce too high error on Debug_* Method #1776

Open quick-pawiromitchel opened 1 month ago

quick-pawiromitchel commented 1 month ago

Seid version Show us output of seid version --long | head

name: sei
server_name: <appd>
version: v5.6.2
commit: 6bad61226f092fadad126d78f52e1cbab3b13d7a
build_tags: netgo,
go: go version go1.21.10 linux/amd64
build_deps:
- cosmossdk.io/errors@v1.0.0
- filippo.io/edwards25519@v1.0.0-rc.1
- github.com/99designs/keyring@v1.2.1

Chain ID Sei Pacific - 1329

Describe the bug A clear and concise description of what the bug is. This payload (also reproducible on public RPC https://evm-rpc.sei-apis.com/)

{"method":"debug_traceBlockByNumber","params":["0x5552eeb", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}

returns

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32000,
    "message": "tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1050 state: 1041"
  }
}

https://www.seiscan.app/pacific-1/blocks/89468651

adammilnesmith commented 1 month ago

Attaching the set of blocks that seem to be affected in case more examples are helpful:

debug_traceBlockByNumber 81772279 (0x4dfbef7):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0x7Ac6d25FD5E437cB7c57Aee77aC2d0A6Cb85936C, tx: 979342 state: 979341"}}

debug_traceBlockByNumber 82385817 (0x4e91b99):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xfD4de3dB3eF2959C538045BCbda87804B3278265, tx: 2157 state: 2156"}}

debug_traceBlockByNumber 89130565 (0x5500645):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0x6F578bF0Cca6af7A0b5Ee0Fa8c86098fBB86d2Bf, tx: 6 state: 5"}}

debug_traceBlockByNumber 89468642 (0x5552ee2):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1042 state: 1041"}}

debug_traceBlockByNumber 89468643 (0x5552ee3):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1043 state: 1041"}}

debug_traceBlockByNumber 89468644 (0x5552ee4):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1044 state: 1041"}}

debug_traceBlockByNumber 89468646 (0x5552ee6):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1045 state: 1041"}}

debug_traceBlockByNumber 89468647 (0x5552ee7):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1046 state: 1041"}}

debug_traceBlockByNumber 89468648 (0x5552ee8):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1047 state: 1041"}}

debug_traceBlockByNumber 89468649 (0x5552ee9):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1048 state: 1041"}}

debug_traceBlockByNumber 89468650 (0x5552eea):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1049 state: 1041"}}

debug_traceBlockByNumber 89468651 (0x5552eeb):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1050 state: 1041"}}

debug_traceBlockByNumber 89468652 (0x5552eec):
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"tracing failed: nonce too high: address 0xAff2C936E5E5Fd1027F581b3A8189C681F804551, tx: 1051 state: 1041"}}
philipsu522 commented 1 month ago

thanks @adammilnesmith! we have a PR in progress that we should be able to roll out in a few weeks: https://github.com/sei-protocol/sei-chain/pull/1778