Skip to content
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

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

Closed
razvan-bugheanu-sftle opened this issue Sep 19, 2019 · 4 comments

Comments

@razvan-bugheanu-sftle
Copy link

razvan-bugheanu-sftle commented Sep 19, 2019

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) ?

@razvan-bugheanu-sftle
Copy link
Author

Is someone going to answer this? I assume there are many others who would need to use this type of sync.

@chainwhisper
Copy link
Contributor

Is someone going to answer this? I assume there are many others who would need to use this type of sync.

The recommended way for state sync is to start from 0. Change that parameter is for debugging

@razvan-bugheanu-sftle
Copy link
Author

I've got an answer from you on another repo issue: bnb-chain/node-binary#126

You can close this as it answered my question. Thank you.

@chainwhisper
Copy link
Contributor

cool, close this now

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

No branches or pull requests

2 participants