From cbbc94fbceabbba08a0463213c7fa6650903994d Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 20 May 2026 11:10:09 +0800 Subject: [PATCH] core/rawdb: address comments from jonny --- core/rawdb/chain_freezer.go | 2 ++ core/rawdb/freezer.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/rawdb/chain_freezer.go b/core/rawdb/chain_freezer.go index 729e616daf..4fe85d843b 100644 --- a/core/rawdb/chain_freezer.go +++ b/core/rawdb/chain_freezer.go @@ -386,6 +386,8 @@ func (f *chainFreezer) Ancient(kind string, number uint64) ([]byte, error) { return f.eradb.GetRawBody(number) case ChainFreezerReceiptTable: return f.eradb.GetRawReceipts(number) + case ChainFreezerBALTable: + return nil, errOutOfBounds } return nil, errUnknownTable } diff --git a/core/rawdb/freezer.go b/core/rawdb/freezer.go index 5fa57bf6e1..d3dbffedd2 100644 --- a/core/rawdb/freezer.go +++ b/core/rawdb/freezer.go @@ -77,8 +77,8 @@ type Freezer struct { // data according to the given parameters. // // The 'tables' argument defines the freezer tables and their configuration. -// Each value is a freezerTableConfig specifying whether snappy compression is -// disabled (noSnappy) and whether the table is prunable (prunable). +// Each value is a freezerTableConfig describing whether Snappy compression +// is disabled (noSnappy) and which tail group the table belongs to. func NewFreezer(datadir string, namespace string, readonly bool, maxTableSize uint32, tables map[string]freezerTableConfig) (*Freezer, error) { // Create the initial freezer object var (