Skip to content

Commit

Permalink
fix very minor bug in repub baseFeeLowerBound
Browse files Browse the repository at this point in the history
messages will not be accepted if the GasFeeCap is less than minimumBaseFee, but it doesn't hurt
to be correct.
  • Loading branch information
vyzo committed Sep 8, 2020
1 parent 867469e commit 26ff596
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain/messagepool/repub.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ func (mp *MessagePool) republishPendingMessages() error {
mp.curTsLk.Unlock()
return xerrors.Errorf("computing basefee: %w", err)
}

baseFeeLowerBound := types.BigDiv(baseFee, baseFeeLowerBoundFactor)
if baseFeeLowerBoundFactor.LessThan(minimumBaseFee) {
baseFeeLowerBound = minimumBaseFee
}

pending := make(map[address.Address]map[uint64]*types.SignedMessage)
mp.lk.Lock()
Expand Down

0 comments on commit 26ff596

Please sign in to comment.