-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
The StateSearchMsg method is suprising. If the message you ask for was replaced then it will return the replacing message rather than the specific message for the CID provided.
// NOTE: If a replacing message is found on chain, this method will return
// a MsgLookup for the replacing message - the MsgLookup.Message will be a different
// CID than the one provided in the 'cid' param, MsgLookup.Receipt will contain the
// result of the execution of the replacing message.
//
// If the caller wants to ensure that exactly the requested message was executed,
// they must check that MsgLookup.Message is equal to the provided 'cid', or set the
// `allowReplaced` parameter to false. Without this check, and with `allowReplaced`
// set to true, both the requested and original message may appear as
// successfully executed on-chain, which may look like a double-spend.
The caller should be able set a allowReplaced parameter to make it clear when they want to confirm the exact message for the CID provided.
Metadata
Metadata
Assignees
Labels
No labels