Skip to content

Commit

Permalink
Merge pull request #3663 from filecoin-project/fix/minor-mpool-bug
Browse files Browse the repository at this point in the history
fix very minor bug in repub baseFeeLowerBound
  • Loading branch information
magik6k authored Sep 8, 2020
2 parents 3697a1a + 26ff596 commit 65b7d71
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 65b7d71

Please sign in to comment.