mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
change minGasPrice in function validateTx
This commit is contained in:
parent
05ad748307
commit
845d3d49e5
1 changed files with 5 additions and 1 deletions
|
|
@ -632,7 +632,11 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
|
|||
// cost == V + GP * GL
|
||||
balance := pool.currentState.GetBalance(from)
|
||||
cost := tx.Cost()
|
||||
minGasPrice := common.MinGasPrice
|
||||
var number *big.Int = nil
|
||||
if pool.chain.CurrentHeader() != nil {
|
||||
number = pool.chain.CurrentHeader().Number
|
||||
}
|
||||
minGasPrice := common.GetMinGasPrice(number)
|
||||
feeCapacity := big.NewInt(0)
|
||||
|
||||
if tx.To() != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue