core/rawdb: address comments from jonny

This commit is contained in:
Gary Rong 2026-05-20 11:10:09 +08:00
parent 40a23eafb8
commit cbbc94fbce
2 changed files with 4 additions and 2 deletions

View file

@ -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
}

View file

@ -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 (