mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
core/rawdb: address comments from jonny
This commit is contained in:
parent
40a23eafb8
commit
cbbc94fbce
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue