Merge pull request #3663 from filecoin-project/fix/minor-mpool-bug

fix very minor bug in repub baseFeeLowerBound
This commit is contained in:
Łukasz Magiera 2020-09-08 19:49:51 +02:00 committed by GitHub
commit 65b7d71bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()