remove duplicate check

gas limit is checked against block gas limit in ValidForBlockInclusion
This commit is contained in:
vyzo 2020-08-26 14:02:34 +03:00
parent d4fef1b5f8
commit da9630c561

View File

@ -431,10 +431,6 @@ func (mp *MessagePool) addLocked(m *types.SignedMessage) error {
mp.blsSigCache.Add(m.Cid(), m.Signature)
}
if m.Message.GasLimit > build.BlockGasLimit {
return xerrors.Errorf("given message has too high of a gas limit")
}
if _, err := mp.api.PutMessage(m); err != nil {
log.Warnf("mpooladd cs.PutMessage failed: %s", err)
return err