From a710ab8c68935046a16712c2002b16584c981efe Mon Sep 17 00:00:00 2001 From: parmarrushabh Date: Thu, 16 Aug 2018 14:51:17 +0530 Subject: [PATCH] Hot fixed for bug can't deploy smart contract to master node. --- core/tx_pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 0e34c0fa30..20c5eccee5 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -586,8 +586,8 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { if pool.currentState.GetBalance(from).Cmp(tx.Cost()) < 0 { return ErrInsufficientFunds } - if tx.To().String() != common.BlockSigners { - intrGas, err := IntrinsicGas(tx.Data(), tx.To() == nil, pool.homestead) + if tx.To() != nil && tx.To().String() != common.BlockSigners { + intrGas, err := IntrinsicGas(tx.Data(), tx.To() == nil, pool.homestead) if err != nil { return err }