Skip to content

Commit

Permalink
Merge pull request #328 from tomochain/contract-creation-fee
Browse files Browse the repository at this point in the history
update deploy contract fee
  • Loading branch information
thanhson1085 authored Mar 4, 2021
2 parents b474e78 + 4e8239a commit 11a18c2
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 11a18c2

Please sign in to comment.