Skip to content

Commit de8b3dd

Browse files
author
eric
committed
1.dev and self-test the requirement of new economic system
2. fix bug that get gasPrice from contract
1 parent d16cb17 commit de8b3dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/tx_pool.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ func (pool *TxPool) GasPrice() *big.Int {
494494
func (pool *TxPool) GasPriceWithoutLock() *big.Int {
495495
return new(big.Int).Set(pool.gasPrice)
496496
}
497+
497498
func (pool *TxPool) SetGasPriceWithoutLock(price *big.Int) {
498499
pool.gasPrice = price
499500
log.Info("Transaction pool price threshold updated", "price", price)
@@ -1308,6 +1309,7 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) {
13081309
next := new(big.Int).Add(newHead.Number, big.NewInt(1))
13091310
pool.istanbul = pool.chainconfig.IsIstanbul(next)
13101311
pool.eip2718 = pool.chainconfig.IsBerlin(next)
1312+
//fncy2 update
13111313
if pool.chainconfig.IsFncy2(next) {
13121314
gasPrice, err := pool.gasPriceFunc(pool.chain.CurrentBlock().Hash())
13131315
if err != nil {

0 commit comments

Comments
 (0)