Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth_getBlock crashes the rpc daemon and Erigon #6

Open
jwasinger opened this issue Jul 7, 2021 · 1 comment
Open

eth_getBlock crashes the rpc daemon and Erigon #6

jwasinger opened this issue Jul 7, 2021 · 1 comment

Comments

@jwasinger
Copy link

jwasinger commented Jul 7, 2021

Have an erigon node synced and running:
./build/bin/erigon --datadir /my/datadir --private.api.addr 127.0.0.1:9090

Start up the rpc daemon:
./turbo-api-examples/cmd/rpc/rpc

Grab the block number:
> curl -X POST -H "Content-Type: application/json" --data "{ \"method\": \"eth_blockNumber\", \"params\": [], \"jsonrpc\": \"2.0\", \"id\": 0}" localhost:8545.

Erigon crashes with:

erigon: mdbx:17136: mdbx_cursor_set: Assertion `!"key-size is invalid for MDBX_INTEGERKEY"' failed.
SIGABRT: abort
PC=0x7f2f1a55dfb7 m=13 sigcode=18446744073709551610

Not sure if I have misconfigured something here? Can post the rest of the stack trace if it would be useful (it's somewhat long).

@mandrigin
Copy link
Owner

@jwasinger hey! it is probably a DB incompatibility. I haven't been keeping this repo up to date with the latest Erigon releases. So potentially you need to upgrade the dependency on the latest Erigon release and try again. You might get some compiler errors though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants