mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
This commit is contained in:
parent
d38d746773
commit
4addc980f4
1 changed files with 7 additions and 3 deletions
|
|
@ -1303,9 +1303,13 @@ func (pool *LegacyPool) runReorg(done chan struct{}, reset *txpoolResetRequest,
|
||||||
// because of another transaction (e.g. higher gas price).
|
// because of another transaction (e.g. higher gas price).
|
||||||
if reset != nil {
|
if reset != nil {
|
||||||
pool.demoteUnexecutables()
|
pool.demoteUnexecutables()
|
||||||
if reset.newHead != nil && pool.chainconfig.IsEIP1559(new(big.Int).Add(reset.newHead.Number, big.NewInt(1))) {
|
if reset.newHead != nil {
|
||||||
pendingBaseFee := eip1559.CalcBaseFee(pool.chainconfig, reset.newHead)
|
if pool.chainconfig.IsEIP1559(new(big.Int).Add(reset.newHead.Number, big.NewInt(1))) {
|
||||||
pool.priced.SetBaseFee(pendingBaseFee)
|
pendingBaseFee := eip1559.CalcBaseFee(pool.chainconfig, reset.newHead)
|
||||||
|
pool.priced.SetBaseFee(pendingBaseFee)
|
||||||
|
} else {
|
||||||
|
pool.priced.Reheap()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Update all accounts to the latest known pending nonce
|
// Update all accounts to the latest known pending nonce
|
||||||
nonces := make(map[common.Address]uint64, len(pool.pending))
|
nonces := make(map[common.Address]uint64, len(pool.pending))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue