From 4e8239aaaf0c95ff33540bc881cae765fa1d796c Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Thu, 4 Mar 2021 04:47:20 +0000 Subject: [PATCH] remove deploy contract fee --- core/tx_pool.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index d6ffb7de7e..a1028ccaa3 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -669,10 +669,12 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { } } - minGasDeploySMC := new(big.Int).Mul(new(big.Int).SetUint64(10), new(big.Int).SetUint64(params.Ether)) - if tx.To() == nil && (tx.Cost().Cmp(minGasDeploySMC) < 0 || tx.GasPrice().Cmp(new(big.Int).SetUint64(10000*params.Shannon)) < 0) { - return ErrMinDeploySMC - } + /* + minGasDeploySMC := new(big.Int).Mul(new(big.Int).SetUint64(10), new(big.Int).SetUint64(params.Ether)) + if tx.To() == nil && (tx.Cost().Cmp(minGasDeploySMC) < 0 || tx.GasPrice().Cmp(new(big.Int).SetUint64(10000*params.Shannon)) < 0) { + return ErrMinDeploySMC + } + */ // validate minFee slot for TomoZ if tx.IsTomoZApplyTransaction() {