wdpost: fix build

This commit is contained in:
Łukasz Magiera 2020-11-19 18:30:53 +01:00
parent 9f807f4aeb
commit b7a282decc

View File

@ -809,7 +809,11 @@ func (s *WindowPoStScheduler) setSender(ctx context.Context, msg *types.Message,
msg.From = pa
bestReq := big.Add(msg.RequiredFunds(), msg.Value)
if avail.LessThan(bestReq) {
messagepool.CapGasFee(msg, big.Min(big.Sub(avail, msg.Value), msg.RequiredFunds()))
mff := func() (abi.TokenAmount, error) {
return msg.RequiredFunds(), nil
}
messagepool.CapGasFee(mff, msg, big.Min(big.Sub(avail, msg.Value), msg.RequiredFunds()))
}
return nil
}