Skip to content

Commit

Permalink
feat: mpool: Include gaslimit in error msg in ValidForBlockInclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Aug 1, 2022
1 parent c215a03 commit f8cf3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/types/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8cf3b1

Please sign in to comment.