-
Notifications
You must be signed in to change notification settings - Fork 156
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
Sidecar fails to handle multi block migration events #1538
Comments
@ermalkaleci Thank you for the issue. The error you are seeing is triggered here in the In Sidecar, when an event is in the In the block you indicated, if I check the contents of and if I click on the indicated extrinsic 7675808-2 I am redirected to a page not found as you would expect. Before adjusting Sidecar's code, I would like to determine if the issue lies within Sidecar's code or your migration logic. To clarify this, I have the following questions:
|
There's no issue with Shiden migration. We're using pallet-migrations from polkadot-sdk. While chain goes through migration, it applies only inherent extrinsic and then apply the migration. The extrinsic index will be incremented by 2 after inherent are applied so any event after will have extrinsic index 2 although there's no actual extrinsic triggering the migration. Migration is executed by the system itself. I don't know what will be the best solution to this but probably ignoring them or not link with an extrinsic may be a solution for now. |
Apologies for the late reply. I will put a fix asap on this so we can correctly output the events related to @ggwpez already shared this PR paritytech/polkadot-sdk#3666 and when it gets merged I expect that these type of events will be set in phase |
Yea sorry i think its a bug in FRAME, the phases are not quite right when a MBM is running. |
Description
Sidecar fails to handle events generated by pallet-migrations. Sidecar tries to find extrinsic but there're no extrinsic other than inherents during migrations
SAS_SUBSTRATE_URL=wss://rpc.shiden.astar.network npx @substrate/api-sidecar
curl http://localhost:8080/blocks/0xc26eb7b19378e953c80ef9749df2b5ae67a7bdb17b3ad9b9a0ee9c1810438a9f
"Missing extrinsic 2 in block 0xc26eb7b19378e953c80ef9749df2b5ae67a7bdb17b3ad9b9a0ee9c1810438a9f"
The text was updated successfully, but these errors were encountered: