shaunxw / xcm-simulator

Test kit to simulate cross-chain message passing and XCM execution
Apache License 2.0
43 stars 45 forks source link

Deduplicate dmp #24

Closed zqhxuyuan closed 2 years ago

zqhxuyuan commented 2 years ago

when testing https://github.com/AcalaNetwork/Acala/pull/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.