-
Notifications
You must be signed in to change notification settings - Fork 379
[Feature Request] Add Event to Show DMP XCMHash After Enqueued/Attempted #2468
Comments
Hey @mkchungs
I did some investigation around and I will try to fix this next week.
I guess no, at least for |
@bkontur thanks for digging into this. I'm looking forward for your fix!
Also thanks for providing more insights to my question. Reason why I asked for We came up some fingerprinting technique to match the non-unique XCMHash. But again, it's not easy and has non-zero possibility of typeI & typeII errors, plus it requires state_traceBlock access. So how can sender/dapps developer disambiguate these seemingly identical xcmMsgs when using xcmV3's |
@mkchungs |
@mkchungs |
Background
Matching XCM transfers in XCMv2 has not been easy due to the lack of XCMHash in events for DMP and UMP cases.
To compensate for this, multi-chain indexer/dApp developers are required to call
state_traceBlock
on every chain, decode it, and look for state changes likeDmp:DownwardMessagesQueues
.At the same time, the
state_traceBlock
solution is no longer practical as many parachains now consider this call "unsafe" and have gradually locked away this RPC method.Current Status (As of Runtime 9382)
XCMv3 (#697) partially solves this annoyance with the addition of the "parachainSystem:UpwardMessageSent" event (#1228)
xcmPallet:Attempted
and still missing the XCMHash associated with it.Feature Request
To improve its usability and fully eliminate the trace dependency for dApp developers, I would like to see an event showing DMP XCMHash when it has been attempted or enqueued (e.g.,
xcmPallet:DownwardMessageEnqueued
) right before thexcmPallet:Attempted
. Can we see this getting implemented soon?Should {
xcmPallet:DownwardMessageEnqueued
,xcmpQueue:XcmpMessageSent
,parasystem:UpwardMessageSent
} be augmented to include xcmContext besides xcmHash?The text was updated successfully, but these errors were encountered: