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

State sync is broken in v12.2.1+ #3517

Closed
faddat opened this issue Nov 25, 2022 · 1 comment · Fixed by #3520
Closed

State sync is broken in v12.2.1+ #3517

faddat opened this issue Nov 25, 2022 · 1 comment · Fixed by #3520

Comments

@faddat
Copy link
Member

faddat commented Nov 25, 2022

Context

I've never been able to state sync osmosis. I've contributed state sync scripts, some with pebbledb, some without, to > a dozen other cosmos chains.

There's been progress lately, namely that errors are reduced to those described here:

My initial guess was that it was related to the use of upstream iavl, but that's proven incorrect. I've purchased a server, that will allow me to investigate this more thoroughly.

@osmo-bot osmo-bot moved this to Needs Review 🔍 in Osmosis Chain Development Nov 25, 2022
Repository owner moved this from Needs Review 🔍 to Done ✅ in Osmosis Chain Development Nov 25, 2022
@faddat faddat reopened this Nov 26, 2022
Repository owner moved this from Done ✅ to In Progress🏃 in Osmosis Chain Development Nov 26, 2022
@faddat
Copy link
Member Author

faddat commented Nov 26, 2022

So I just spent ... pretty much way too long making state sync work.

this was going to be a writeup of problems, but I just got it working.

I don't know why it frequently doesn't work, but my node just reached the tip.

In order to make it work, I set a server to make a snapshot every 100 blocks. This actually takes longer than every 100 blocks takes to pass by, but basically I:

used the Notional snapshot, which is pruned, but not heavily, and is pebble flavored:

https://snapshot.notional.ventures/

I applied #3522 to Osmosis v12.3.0, and compiled on that server with the pebble code (mainly for speed reasons -- this took over 8 hours to get rolling) and then from my desktop, I began a state sync where that server was my only peer.

Previously, when I tried to state sync, I got block.Header.AppHash errors.

Now, it works. I'm pushing my working state sync branch here, and it is possible that we can finally make it work in CI.

If code changes made state sync work, these are the code changes that worked:

#3522

@faddat faddat closed this as completed Nov 26, 2022
Repository owner moved this from In Progress🏃 to Done ✅ in Osmosis Chain Development Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
1 participant