Skip to content

Commit

Permalink
Merge pull request #5403 from filecoin-project/fix/estim-limit-rbf
Browse files Browse the repository at this point in the history
fix(gas): when estimating GasLimit only apply priors up to the nonce
  • Loading branch information
Jakub Sztandera authored Jan 22, 2021
2 parents 29b076a + 8c7fda4 commit d6c0688
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node/impl/full/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ func gasEstimateGasLimit(
pending, ts := mpool.PendingFor(fromA)
priorMsgs := make([]types.ChainMsg, 0, len(pending))
for _, m := range pending {
if m.Message.Nonce == msg.Nonce {
break
}
priorMsgs = append(priorMsgs, m)
}

Expand Down

0 comments on commit d6c0688

Please sign in to comment.