You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.https://github.com/filecoin-project/lotus/blob/2e6369012517972eb3f4f24f8a28e5a834cc66ad/api/api_full.go#L435-L451
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.The text was updated successfully, but these errors were encountered: