From 4c4fd0a37a5a8f740c930752ec7f24033984ef41 Mon Sep 17 00:00:00 2001 From: parmarrushabh Date: Sat, 17 Nov 2018 18:28:49 +0530 Subject: [PATCH] Fixed bug not validate zero gas price for tx deploy SMC. --- core/tx_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index e2a8a5ba8c..ca6feb164c 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -605,7 +605,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { 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) if err != nil { return err