Skip to content

Commit

Permalink
StateSearchMsg: Correct usage of the allowReplaced flag
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek authored Oct 6, 2021
1 parent 26ae8bb commit 0040324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/stmgr/searchwait.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (sm *StateManager) tipsetExecutedMessage(ts *types.TipSet, msg cid.Cid, vmm

if m.VMMessage().From == vmm.From { // cheaper to just check origin first
if m.VMMessage().Nonce == vmm.Nonce {
if allowReplaced && m.VMMessage().EqualCall(vmm) {
if allowReplaced || m.VMMessage().EqualCall(vmm) {
if m.Cid() != msg {
log.Warnw("found message with equal nonce and call params but different CID",
"wanted", msg, "found", m.Cid(), "nonce", vmm.Nonce, "from", vmm.From)
Expand Down

0 comments on commit 0040324

Please sign in to comment.