Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file configures github.com/golangci/golangci-lint.
version: '2'
run:
go: 1.25.4
go: 1.25.5
tests: true
linters:
default: none
Expand Down
6 changes: 6 additions & 0 deletions core/rawdb/freezer.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ func NewFreezer(datadir string, namespace string, readonly bool, offset uint64,
instanceLock: lock,
}

freezer.offset.Store(offset)

// Create the tables.
for name, config := range tables {
table, err := newTable(datadir, name, readMeter, writeMeter, sizeGauge, maxTableSize, config, readonly)
Expand Down Expand Up @@ -154,6 +156,10 @@ func NewFreezer(datadir string, namespace string, readonly bool, offset uint64,
return nil, err
}

// Some blocks in ancientDB may have already been frozen and been pruned, so adding the offset to
// represent the absolute number of blocks already frozen.
freezer.frozen.Add(offset)

// Create the write batch.
freezer.writeBatch = newFreezerBatch(freezer)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/ethereum/go-ethereum

// Note: Change the go image version in Dockerfile if you change this.
go 1.25.4
go 1.25.5

require (
github.com/0xPolygon/crand v1.0.3
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
const (
VersionMajor = 2 // Major version component of the current release
VersionMinor = 5 // Minor version component of the current release
VersionPatch = 2 // Patch version component of the current release
VersionPatch = 3 // Patch version component of the current release
VersionMeta = "" // Version metadata to append to the version string
)

Expand Down
Loading