-
Notifications
You must be signed in to change notification settings - Fork 990
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
Early blocks not found with REST api with archive_mode = true #2612
Comments
This is expected behavior.
Your "archive" node will only archive blocks received since it started processing blocks. |
@antiochp So how can I download entire historical blockchain (non-pruned)? I need to find node with full chain or what? It's entirely unclear from comments or from documentation. |
There is no "official" way of doing this. To support this we would need to commit to supporting archive nodes on the network that actually had all this data. You will need to find someone who is willing to provide a db export. |
@antiochp If I find node with full-chain, will I receive entirety of chain_data (via |
You will need to copy the files. There is no support in the grin networking layer to request or provide historical blocks. |
Describe the bug
After full sync (from completely empty chain) with
archive_mode = true
REST API returns 404 for all blocks earlier than certain height. It still returns block headers for that height.Full block not found:
However header exists:
To Reproduce
Steps to reproduce the behavior:
~/.grin/
directory and populate default config~/.grin/main/grin-server.toml
: changearchive_mode
to fromfalse
totrue
, remove line withapi_secret_path
~/.grin/main/chain_data
127.0.0.1:3413/v1/blocks/1
(first block that's not a genesis) and see 404 (expected full block)127.0.0.1:3413/v1/headers/1
and see that it exists (as expected)Relevant Information
Nothing relevant in logs, no errors, warnings or anything.
Desktop:
Additional context
I tried (completely different tries, unrelated to
steps to reproduce
):and archived nothing.
The text was updated successfully, but these errors were encountered: