-
Notifications
You must be signed in to change notification settings - Fork 704
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
xcm version auto discovery improvements #922
Comments
HRMP happens at an abstraction level below XCM, so it would need to be done through an abstract interface. I’d consider a PR. |
Accept HRMP channel already triggers a XCM message. We can automatically subscribe XCM version with |
|
@xlc proposed solution here: #4025 - initiate version discovery on HRMP channel accepted message. If we want to immediately subscribe and set version with
|
❌ The proposed solution #4025 won't work in the end because, as I understand it, the HRMP channel creation and closing are propagated to the parachain on the next relay chain session change. Therefore, this callback handler We need to find another solution for this because we don't have any callback when the HRMP channel is truly opened or closed on the parachain. One possible solution would be to add some
here, we could make a comparison between the actual Need to investigate more. |
can we make the change so the notification is only sent when it is truly enacted? otherwise those notifications seems not very useful |
Yes, could be possible, but in that case, we would probably need a new HrmpNotifications, so
|
There are few issues with the current implement of xcm version auto discovery:
transactional
call. We revert all storage changes if the xcm message failed to sent, which reverts the update toVersionDiscoveryQueue
.Why not just automatically subscribe XCM version for all HRMP channel destination chains? Frontend can detect if the HRMP channel is created and if XCM version is discovered and pause feature until it is all good.
The text was updated successfully, but these errors were encountered: