-
Notifications
You must be signed in to change notification settings - Fork 234
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
memiavl state-synced node cannot be used as JSON-RPC node #1146
Comments
You probably just need to restore the initial versiondb from state sync snapshot: |
|
Thanks @yihuang |
sure, I just added a sub-step under the step 3: 3a. (Optional) If you want to enable versiondb together, you need to restore the versiondb from the snapshot as well:
|
Thanks for the clarification I have done the steps all again including the
ETA: Both times |
did you query for historical blocks that's before the snapshot height, or not synced yet? |
I tried when it was syncing and synced to latest. I believe the command asks for the latest block
|
Describe the bug
memiavl state-synced node cannot be used as JSON-RPC node. Same result for node using
enable-indexer = true
Another node that was traditionally state-synced with memiavl enabled provided the snapshot.
To Reproduce
app.toml
cronosd snapshots dump 9911000 2
9911000-2.tar.gz
file into another servercronosd snapshots load 9911000-2.tar.gz
cronosd snapshots restore 9911000 2
cronosd tendermint bootstrap bootstrap-state
cronosd start
. Node starts syncingeth_call
to JSON-RPC portcurl localhost:18454 -X POST -H "Content-Type: application/json" --data '{"method":"eth_call","params":[{"from":null,"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest"],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"rpc error: code = Unknown desc = rpc error: code = Internal desc = failed to obtain coinbase address: failed to retrieve validator from block proposer address crcvalcons1gulrn5tyrjhrs39gxnnfmp52y8duentwdf4shu: validator does not exist: unknown request"}}
Expected behavior
On another node with almost exact same
app.toml
andconfig.toml
except for the memiavl and versiondb, got reply of{"jsonrpc":"2.0","id":1,"result":"0x"}
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: