sei-protocol / sei-chain

Apache License 2.0
2.67k stars 797 forks source link

[BUG] debug_traceBlockByNumber throwing "insufficient funds" error for block 81772242 on pacific-1 #1720

Closed a26nine closed 1 week ago

a26nine commented 3 weeks ago

Seid version

name: sei
server_name: <appd>
version: v5.5.4
commit: 07b5ad5b129bc1b3f47925cf1ec71b44287ff0bb
build_tags: netgo,
go: go version go1.21.7 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 pacific-1

Describe the bug While calling the debug_traceBlockByNumber method for block 81772242, the nodes throw an error:

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32000,
    "message": "tracing failed: insufficient funds for gas * price + value: address 0x7Ac6d25FD5E437cB7c57Aee77aC2d0A6Cb85936C have 2573662960279949 want 3000000000000000"
  }
}

This is the case case with multiple nodes.

Request Body

{
  "jsonrpc": "2.0",
  "method": "debug_traceBlockByNumber",
  "params": [
    "0x4dfbedb",
    {
      "timeout": "10m",
      "tracer": "callTracer",
      "tracerConfig": {
        "onlyTopCall": false,
        "withLog": true
      }
    }
  ],
  "id": 1
}

Additional context I tried the same call on the Rhino Public API, it throws an error too, but a different one:

curl  -X POST \
  'https://evm-rpc.sei-apis.com' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "jsonrpc": "2.0",
  "method": "debug_traceBlockByNumber",
  "params": [
    "0x4dfbedb",
    {
      "timeout": "10m",
      "tracer": "callTracer",
      "tracerConfig": {
        "onlyTopCall": false,
        "withLog": true
      }
    }
  ],
  "id": 1
}'

{
  "jsonrpc": "2.0",
  "id": 2727,
  "error": {
    "code": -32000,
    "message": "tracing failed: nonce too high: address 0x7Ac6d25FD5E437cB7c57Aee77aC2d0A6Cb85936C, tx: 979341 state: 0"
  }
}
philipsu522 commented 1 week ago

fixed in https://github.com/sei-protocol/sei-chain/commit/225a8bb656e853cc9a15b4cd9334c44254e39d22