From 26ff59698321da24ad06cdc68210c429c687e318 Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 8 Sep 2020 19:02:05 +0300 Subject: [PATCH] fix very minor bug in repub baseFeeLowerBound messages will not be accepted if the GasFeeCap is less than minimumBaseFee, but it doesn't hurt to be correct. --- chain/messagepool/repub.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chain/messagepool/repub.go b/chain/messagepool/repub.go index d1b1116c5..fd0324d0a 100644 --- a/chain/messagepool/repub.go +++ b/chain/messagepool/repub.go @@ -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()