Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshishuo committed May 26, 2019
2 parents 656395b + c6eceef commit be66da7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/ethereum.go
Expand Up @@ -331,7 +331,7 @@ func (app *EthermintApplication) lowPriceTxCheck(from common.Address, tx *ethTyp
return errors.CodeLowGasPriceErr, "The gas price is too low for transaction"
}
// Bypass if the gasprice == 0 and gaslimit > lowPriceCap
if tx.GasPrice().Int64() > 0 && tx.Gas() > utils.GetParams().LowPriceTxGasLimit {
if (tx.GasPrice().Int64() > 0 || tx.To() == nil) && tx.Gas() > utils.GetParams().LowPriceTxGasLimit {
return errors.CodeHighGasLimitErr, "The gas limit is too high for low price transaction"
}
if len(lowPriceTxs) > utils.GetParams().LowPriceTxSlotsCap {
Expand Down
2 changes: 1 addition & 1 deletion glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Expand Up @@ -34,7 +34,7 @@ import:
- types
- package: github.com/ethereum/go-ethereum
repo: https://github.com/second-state/lityvm.git
version: 1f89df98b3a4e9d0867341676ae8578b02c6b655
version: 557cc4935d94d6e1d6b947143788838ca98908f9
- package: gopkg.in/urfave/cli.v1
version: 1.x
- package: github.com/mattn/go-sqlite3
Expand Down

0 comments on commit be66da7

Please sign in to comment.