Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

How can you know what height ( > 0) to set for state_sync_height #126

Closed
razvan-bugheanu-sftle opened this issue Oct 8, 2019 · 2 comments

Comments

@razvan-bugheanu-sftle
Copy link

Hi,
I am trying to use state_sync from a given height. The issue is it starts from height 0 even if I tried with different state_sync_height values (e.g. 35000000).

From what I have read on BEP18, it says somewhere that the configured height must match some peer's snapshot height, but I don't know how to find out some peers available snapshots heights information.

Can you provide a working example (I am trying on mainnet, I have version 0.6.1) ?

This is very important for someone who needs to synch from a historical block. but not from genesis.

@chainwhisper
Copy link
Contributor

Hello, @razvan-bugheanu-sftle

The latest snapshot height is 40242473.

When do you wish to sync from? You can find the snapshot height from explorer. the are the first block after 0:00 UTC.

@razvan-bugheanu-sftle
Copy link
Author

That is great, thank you.

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

No branches or pull requests

2 participants