mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Hot fixed for bug can't deploy smart contract to master node.
This commit is contained in:
parent
2dfb27bcda
commit
458bb39287
1 changed files with 1 additions and 1 deletions
|
|
@ -586,7 +586,7 @@ 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 {
|
||||
if tx.To() != nil && tx.To().String() != common.BlockSigners {
|
||||
intrGas, err := IntrinsicGas(tx.Data(), tx.To() == nil, pool.homestead)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue