-
Notifications
You must be signed in to change notification settings - Fork 55
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
Smoldot has panicked while executing task sync-service-rococo_v2_2
#1308
Comments
Hi @kratico, I think is related to a current issue in |
Thx @pepoviola Follow up question, Should the |
FYI, I'm using What would be the right way to recover from that? |
Smoldot isn't supposed to crash in that situation (or any situation). The message that you've copy-pasted mentions "this is a bug in smoldot". |
It seems that the runtime says that a certain Babe epoch starts at slot N, whereas the header of a block within that epoch says that its slot number is M, where M < N. The Babe verification code panics if the configuration of the chain is invalid (like is the case right now), but the code built on top of it doesn't check this specific configuration point. |
In addition to fixing the issue (by checking this configuration point), I'm going to remove the panics in Aura and Babe, as the panic reason is too hard to reason about, and instead return some kind of |
Getting this error
With the following script shared in stackblitz
I've checked this in stackblitz with
Node v18.18.0
and the followingsmoldot
versionsv2.0.7
,panicked at 'assertion failed: curr.start_slot_number <= parent_slot_number', lib/src/verify/babe.rs:280:9
v2.0.6
andv2.0.3
, stuck with[sync-service-rococo_v2_2] GrandPa warp sync idle at block #7527149 (0x0x6cc8…d74a)
Then, testing locally with OSX and
Node v18.18.0
,smoldot
versionsv2.0.7
,v2.0.6
andv2.0.3
panic.Note:
[email protected]
so it might be related to a change in RococoThe text was updated successfully, but these errors were encountered: