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

Deduplicate dmp #24

Merged
merged 6 commits into from
Mar 8, 2022
Merged

Deduplicate dmp #24

merged 6 commits into from
Mar 8, 2022

Conversation

zqhxuyuan
Copy link
Contributor

when testing AcalaNetwork/Acala#1712 which send two xcm, recipient parachain get two dmp messages from relaychain. this is because dmp_contents not deleted, thus causing duplicate mssages.

the deduplicate condition is based on to_para_id,relay_block_number and msg, this means relaychain can only send one same msg to one parachain in one block. it may make sense in testcase.

Copy link
Owner

@shaunxw shaunxw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a unit test to cover it?

@shaunxw shaunxw merged commit 3a08026 into shaunxw:master Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants