Merge pull request #5403 from filecoin-project/fix/estim-limit-rbf
fix(gas): when estimating GasLimit only apply priors up to the nonce
This commit is contained in:
commit
d6c06881ee
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user