remove duplicate check
gas limit is checked against block gas limit in ValidForBlockInclusion
This commit is contained in:
parent
d4fef1b5f8
commit
da9630c561
@ -431,10 +431,6 @@ func (mp *MessagePool) addLocked(m *types.SignedMessage) error {
|
|||||||
mp.blsSigCache.Add(m.Cid(), m.Signature)
|
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 {
|
if _, err := mp.api.PutMessage(m); err != nil {
|
||||||
log.Warnf("mpooladd cs.PutMessage failed: %s", err)
|
log.Warnf("mpooladd cs.PutMessage failed: %s", err)
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user