-
Notifications
You must be signed in to change notification settings - Fork 519
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
Genesis block not accessible #78
Comments
@sorpaas we may want to include it as part of the pallet's storage initialization? |
@tgmichel the "earliest" block should be 0 I believe.
|
PR #79 fixes this. |
@sorpaas This is fixed |
@ermalkaleci Plot twist :) It was working before introducing AuxStore-based block import but the mapping is not done for the genesis block (as it is not imported). Calls that require hash to hash translation don't work for it (i.e. |
@tgmichel that's fixed as well |
Strange, just tried it and still getting a |
So if you run the node without manual sealing, genesis block still not mapped in the AuxStore. |
@tgmichel it's working for me |
Still I don't know how. Could you explain how #134 fixes or is it related with this? For me it is returning
And using its
|
@tgmichel ok got it. FrontierBlockImport not called for genesis block when using aura import queue |
Using Moonbeam Alphanet, which is using frontier, I discovered this same issue. I'm able to get the block 0 using the # get hash of block 0 or "earliest"
curl -sL \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["0x0", false],
"id":666
}' \
https://rpc.testnet.moonbeam.network | jq -r '.result.hash'
# try to get block 0 from hash -> NULL/ERROR
curl -sL \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0x177faa2eb3975cfb29d14ec337b66656ab120cdaa1656ce1d7cb93e68b06049e", false],
"id":666
}' \
https://rpc.testnet.moonbeam.network Do you know if this fix is in the roadmap? Will this be fixed at some point? Thank you |
Problem confirmed by this test moonbeam-foundation/moonbeam#209 |
This can be closed now (at last!) |
Hello, I can see lots of discussion about workaround here #279. |
When doing a
eth_getBlockByNumber
using 0 (and "earliest" too ?), it returns null.I believe it should return the genesis block
The text was updated successfully, but these errors were encountered: