core/txpool/blobpool: migrate billy if osaka is scheduled, not just active

This commit is contained in:
lightclient 2025-09-11 13:43:45 -06:00
parent 30832e2ba4
commit 38ed51c372
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -402,7 +402,7 @@ func (p *BlobPool) Init(gasTip uint64, head *types.Header, reserver txpool.Reser
slotter := newSlotter(eip4844.LatestMaxBlobsPerBlock(p.chain.Config())) slotter := newSlotter(eip4844.LatestMaxBlobsPerBlock(p.chain.Config()))
// Check if we need to migrate our blob db to the new slotter. // Check if we need to migrate our blob db to the new slotter.
if p.chain.Config().IsOsaka(head.Number, head.Time) { if p.chain.Config().OsakaTime != nil {
// Open the store using the version slotter to see if any version has been // Open the store using the version slotter to see if any version has been
// written. // written.
var version int var version int