mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
Fixed bug not validate zero gas price for tx deploy SMC.
This commit is contained in:
parent
2c6bba7faf
commit
4c4fd0a37a
1 changed files with 1 additions and 1 deletions
|
|
@ -605,7 +605,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
|
||||||
return ErrInsufficientFunds
|
return ErrInsufficientFunds
|
||||||
}
|
}
|
||||||
|
|
||||||
if tx.To() != nil && !tx.IsSpecialTransaction() {
|
if tx.To() == nil || (tx.To() != nil && !tx.IsSpecialTransaction()) {
|
||||||
intrGas, err := IntrinsicGas(tx.Data(), tx.To() == nil, pool.homestead)
|
intrGas, err := IntrinsicGas(tx.Data(), tx.To() == nil, pool.homestead)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue