feat: mpool: Include gaslimit in error msg in ValidForBlockInclusion

This commit is contained in:
Łukasz Magiera 2022-08-01 17:15:26 +02:00
parent c215a03edd
commit f8cf3b1510

View File

@ -196,7 +196,7 @@ func (m *Message) ValidForBlockInclusion(minGas int64, version network.Version)
}
if m.GasLimit > build.BlockGasLimit {
return xerrors.New("'GasLimit' field cannot be greater than a block's gas limit")
return xerrors.Errorf("'GasLimit' field cannot be greater than a block's gas limit (%d > %d)", m.GasLimit, build.BlockGasLimit)
}
// since prices might vary with time, this is technically semantic validation