Open vyuldashev opened 6 days ago
I think I found a solution. If you have sc-enable = true
in your config.toml
, then you need to also enable ss-enable
sc-enable
yeah, the interface is ok, but the log is also tell it error as is crashed.
ERROR[10-08|22:24:33.679] RPC method eth_getBlockByNumber crashed: runtime error: invalid memory address or nil pointer dereference
goroutine 139287 [running]:
github.com/ethereum/go-ethereum/rpc.(*callback).call.func1()
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/service.go:199 +0x85
panic({0x24d9860?, 0x4ccb5d0?})
/opt/seimain/goenv/go/src/runtime/panic.go:914 +0x21f
math/big.(*Int).Quo(0xc00ff89520, 0x0, 0xc00050f0a0)
/opt/seimain/goenv/go/src/math/big/int.go:268 +0x28
github.com/cosmos/cosmos-sdk/types.chopPrecisionAndTruncate(...)
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/sei-cosmos@v0.3.37-0.20240923023912-aa7a702d42cc/types/decimal.go:589
github.com/cosmos/cosmos-sdk/types.Dec.TruncateInt({0x3816c70?})
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/sei-cosmos@v0.3.37-0.20240923023912-aa7a702d42cc/types/decimal.go:603 +0x30
github.com/sei-protocol/sei-chain/evmrpc.EncodeTmBlock({{0x38026a0, 0x4dd4820}, {0x3820ef8, 0xc00ff74de0}, {{0x0, 0x0}, {0xc000736390, 0x9}, 0x660b35f, {0x1be5b48a, ...}, ...}, ...}, ...)
/opt/seimain/core/sei-chain/evmrpc/block.go:223 +0x4a9
github.com/sei-protocol/sei-chain/evmrpc.(*BlockAPI).getBlockByNumber(0xc006528060, {0x3802b48, 0xc014cd3c70}, 0x1?, 0x1?)
/opt/seimain/core/sei-chain/evmrpc/block.go:134 +0x296
github.com/sei-protocol/sei-chain/evmrpc.(*BlockAPI).GetBlockByNumber(0xc006528060, {0x3802b48, 0xc014cd3c70}, 0x660b35f, 0x4?)
/opt/seimain/core/sei-chain/evmrpc/block.go:117 +0xb74
reflect.Value.call({0xc000548620?, 0xc005d3a320?, 0x7f00f4639b90?}, {0x286ed6d, 0x4}, {0xc00fdf49c0, 0x4, 0x41ac12?})
/opt/seimain/goenv/go/src/reflect/value.go:596 +0xce7
reflect.Value.Call({0xc000548620?, 0xc005d3a320?, 0x544e65?}, {0xc00fdf49c0?, 0x2?, 0x16?})
/opt/seimain/goenv/go/src/reflect/value.go:380 +0xb9
github.com/ethereum/go-ethereum/rpc.(*callback).call(0xc006528300, {0x3802b48?, 0xc014cd3c70}, {0xc008ce1bd8, 0x14}, {0xc017f247b0, 0x2, 0x49a04f?})
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/service.go:205 +0x379
github.com/ethereum/go-ethereum/rpc.(*handler).runMethod(0xc008ce1bc0?, {0x3802b48?, 0xc014cd3c70?}, 0xc022609f80, 0x2?, {0xc017f247b0?, 0x41c2e8?, 0x4c0000c0000a5c00?})
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/handler.go:565 +0x3c
github.com/ethereum/go-ethereum/rpc.(*handler).handleCall(0xc00e227900, 0xc017f246f0, 0xc022609f80)
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/handler.go:512 +0x22f
github.com/ethereum/go-ethereum/rpc.(*handler).handleCallMsg(0xc00e227900, 0xc017f24750?, 0xc022609f80)
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/handler.go:470 +0x22d
github.com/ethereum/go-ethereum/rpc.(*handler).handleNonBatchCall(0xc00e227900, 0xc017f246f0, 0xc022609f80)
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/handler.go:296 +0x187
github.com/ethereum/go-ethereum/rpc.(*handler).handleMsg.func1.1(0x3802b48?)
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/handler.go:269 +0x25
github.com/ethereum/go-ethereum/rpc.(*handler).startCallProc.func1()
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/handler.go:387 +0xbe
created by github.com/ethereum/go-ethereum/rpc.(*handler).startCallProc in goroutine 139285
/opt/seimain/goenv/gopath/pkg/mod/github.com/sei-protocol/go-ethereum@v1.13.5-sei-9.0.20240923025222-815b87dde97b/rpc/handler.go:383 +0x79
WARN [10-08|22:24:33.679] Served eth_getBlockByNumber conn=172.31.239.240:59898 reqid=1 duration="995.353µs" err="method handler crashed"
Seid version
Chain ID Mainnet / Pacific
Describe the bug
eth_getBlockByNumber
returns:To Reproduce Example request for block number 107120412:
Additional Context
Node logs shows: