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 }