core/txpool/blobpool: fix fork boundary condition

This commit is contained in:
Gary Rong 2025-09-18 22:14:08 +08:00
parent de75c79fe4
commit c32250a666

View file

@ -884,7 +884,7 @@ func (p *BlobPool) Reset(oldHead, newHead *types.Header) {
blobfeeGauge.Update(int64(blobfee.Uint64()))
p.updateStorageMetrics()
if p.chain.Config().IsOsaka(newHead.Number, newHead.Time) {
if !p.chain.Config().IsOsaka(oldHead.Number, oldHead.Time) && p.chain.Config().IsOsaka(newHead.Number, newHead.Time) {
txs := make(map[common.Address]map[common.Hash]uint64)
for address, list := range p.index {
txs[address] = make(map[common.Hash]uint64)