mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
core/rawdb: lint
This commit is contained in:
parent
365175f70c
commit
da9ebaea44
1 changed files with 0 additions and 16 deletions
|
|
@ -361,22 +361,6 @@ func (f *Freezer) Sync() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// splitTables splits tables in header and non-header tables
|
||||
func splitTables(tables map[string]*freezerTable) (map[string]*freezerTable, map[string]*freezerTable) {
|
||||
var (
|
||||
headTables = make(map[string]*freezerTable)
|
||||
otherTables = make(map[string]*freezerTable)
|
||||
)
|
||||
for kind, table := range tables {
|
||||
if kind == ChainFreezerHeaderTable || kind == ChainFreezerHashTable {
|
||||
headTables[kind] = table
|
||||
} else {
|
||||
otherTables[kind] = table
|
||||
}
|
||||
}
|
||||
return headTables, otherTables
|
||||
}
|
||||
|
||||
// validate checks that every table has the same boundary.
|
||||
// Used instead of `repair` in readonly mode.
|
||||
func (f *Freezer) validate() error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue