feat: mpool: Include gaslimit in error msg in ValidForBlockInclusion

This commit is contained in:
Łukasz Magiera authored and Jennifer Wang committed 2022-08-01 11:19:18 -04:00
1 parent 3feb9167cb
commit 0b5d2abc3d
1 file changed
+1 -1
+1 -1
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