Skip to content

Commit

Permalink
remove deploy contract fee
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Mar 4, 2021
1 parent b474e78 commit 4e8239a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4e8239a

Please sign in to comment.