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

RPC nodes must run new node after nara runtime upgrade #4907

Closed
mnaamani opened this issue Oct 3, 2023 · 1 comment
Closed

RPC nodes must run new node after nara runtime upgrade #4907

mnaamani opened this issue Oct 3, 2023 · 1 comment
Labels

Comments

@mnaamani
Copy link
Member

mnaamani commented Oct 3, 2023

After runtime upgrade to nara, a node that is used as an RPC endpoint to submit extrinsics MUST update to new binary otherwise polkadot-js api will have issues processing the dispatch result with errors that look like this:

2023-10-03 10:46:19        RPC-CORE: queryInfo(extrinsic: Bytes, at?: BlockHash): RuntimeDispatchInfo:: 1: Unable to query dispatch info.: Failed to decode return value of query_info
2023-10-03 10:46:19        RPC-CORE: queryInfo(extrinsic: Bytes, at?: BlockHash): RuntimeDispatchInfo:: 1: Unable to query dispatch info.: Failed to decode return value of query_info
2023-10-03 10:46:19        RPC-CORE: queryInfo(extrinsic: Bytes, at?: BlockHash): RuntimeDispatchInfo:: 1: Unable to query dispatch info.: Failed to decode return value of query_info
2023-10-03 10:46:19        RPC-CORE: queryInfo(extrinsic: Bytes, at?: BlockHash): RuntimeDispatchInfo:: 1: Unable to query dispatch info.: Failed to decode return value of query_info

This is because of the difference between the node and runtime expectation of the structure of RuntimeDispatchInfo type.

If we run the new version of the node ahead of the upgrade, would we get the same problem (when submitting transactions before the runtime upgrade?) or will handle this case better.
Would a newer version of polkadot-js api handle this edge case better? (Ie using runtime call instead of rpc call for queryInfo)?

ref https://substrate.stackexchange.com/questions/5634/rpc-payment-queryfeeinfo-fails-on-westend-9310

┆Issue is synchronized with this Asana task by Unito

@mnaamani
Copy link
Member Author

mnaamani commented Oct 3, 2023

If we run the new version of the node ahead of the upgrade, would we get the same problem (when submitting transactions before the runtime upgrade?) or will handle this case better.

Yes tested, works flawlessly.

So the general recommendation should be for all node runners to run new version ahead of runtime upgrade for smooth operations.

This was referenced Oct 4, 2023
@sync-by-unito sync-by-unito bot closed this as completed Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant