Replay failed XCM messages command#1589
Conversation
|
control/preimage/src/commands.rs
Outdated
| weight_limit: WeightLimit::Unlimited, | ||
| check_origin: None, | ||
| }, | ||
| DescendOrigin(Junctions::X1([Junction::Parachain(1000)])), |
There was a problem hiding this comment.
We should test in chopsticks without the DescendOrigin. Not sure if its needed as we dont really validate the origin of asset hub.
There was a problem hiding this comment.
we dont really validate the origin of asset hub.
We do — the Barrier enforced on BH will deny ExportMessage from anywhere (including the Relay chain) except AH.
So it looks like this PR won’t work. Replaying the transaction would still require constructing an XCM from AH - Potentially a Transact that sends ExportMessage directly to BH to bypass the 1.5DOT fee - which seems a bit too complicated.
Or, we may need to reconsider upgrading the Gateway to unlock the asset directly to the recipient?
alistair-singh
left a comment
There was a problem hiding this comment.
Confirmed the users and amounts as per the data above.
| let failed_messages: Vec<(AssetType, u128, [u8; 20], [u8; 32])> = vec![ | ||
| // SKY token transfer | ||
| ( | ||
| AssetType::Erc20(hex!("56072c95faa701256059aa122697b133aded9279")), | ||
| 90413710543975890000000, | ||
| hex!("601d579ecd0464a1a090ceef81a703465a1679cd"), | ||
| hex!("f701fb349a04e4c923e26aab4e0288975d904507cdc32a3d3bdab8105507c736"), | ||
| ), | ||
| // sUSDe token transfer | ||
| ( | ||
| AssetType::Erc20(hex!("9d39a5de30e57443bff2a8307a4256c8797a3497")), | ||
| 16716000000000000000000, | ||
| hex!("9117900a3794ad6d167dd97853f82a1aa07f9bbc"), | ||
| hex!("e4cff6bf2217eb4cf9332d2daee1ada70b405402414a2249a6e9b42ab759f93f"), | ||
| ), | ||
| // tBTC v2 token transfer | ||
| ( | ||
| AssetType::Erc20(hex!("18084fba666a33d37592fa2633fd49a74dd93a88")), |
There was a problem hiding this comment.
Double-checked — everything looks as expected. Just a nitpick: better to list the failing transfers in strict order:
select message_id, token_address, destination_address, amount from transfer_status_to_ethereum where status = 0 order by timestamp ASC;
|
Preimage: |
* update metadata * upgrade xcm and replay command * try routing through asset hub * fix relative dest --------- Co-authored-by: Alistair Singh <alistair.singh7@gmail.com>
Replays failed transactions after Polkadot 1.7.1 upgrade.