-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unable to get block details for all block numbers. #354
Comments
network b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 (mainnet, damask upgrade) started on height 8048956 (see the genesis file). blocks below that number don't exist on this hard fork of the network, so you won't be able to access them, including on the rosetta gateway. there may be other limitations if your node has only partial history |
Is there any way to configure my rosetta node to have data from the first block of the chain? Can you help me with the relevant genesis file to pick for the same? |
I think it has to do with setting up a node without pruning. But again, just make sure this is clear, "the first block of the chain" has height 8048956, not 1. |
Can you clarify then how the explorer shows details from block number 702004 (https://www.oasisscan.com/blocks) , is it possible to have that in my rosetta node ? |
Yeah, that's definitely worth bringing up. Oasis Scan, in addition to allowing users to view blocks on the current network, also allows users to view blocks from previous hard forks. Those blocks are available through rosetta too, although you'd have to run a node configured for that older hard fork and an instance of the rosetta gateway connected to that node. These two programs will have to be versions compatible with those hard forks (i.e. lower versions). |
can you help me get the older hard fork configuration? also is there any document mentioning details about the previous hard forks? |
https://docs.oasis.dev/general/run-a-node/upgrade-log see historical upgrade instructions here to get what version of oasis-node to run and some hints on how to configure it. the configuration has undergone various changes https://github.com/oasisprotocol/mainnet-artifacts/releases you can get previous hard forks' genesis files here but you'll also need to download a snapshot of the data somehow, and we don't have any official copies of that. maybe you can get some from the community |
I an unable to get the block details for various block numbers. I want to understand what would be the first block for which block details would be present in the rosetta api. eg:
curl --location --request POST '10.213.67.9:7332/block'
--header 'Content-Type: application/json'
--data-raw '{
"network_identifier":
{
"blockchain": "Oasis",
"network": "b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535"
},
"block_identifier": {
"index": 1
}
}'
response received:
{
"code": 12,
"message": "unable to get block",
"retriable": true
}
Please elaborate on the oasis blockchain and block numbering
aLso oasis scan explorer shows the first block as 702004 (https://www.oasisscan.com/blocks)
The text was updated successfully, but these errors were encountered: