mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
fix lint
This commit is contained in:
parent
acb4e0001f
commit
2e9e14238d
1 changed files with 5 additions and 5 deletions
|
|
@ -388,11 +388,11 @@ func (e *Era) indexOffset(n uint64, component componentType) (int64, error) {
|
||||||
|
|
||||||
// metadata contains the information about the era file that is written into the file.
|
// metadata contains the information about the era file that is written into the file.
|
||||||
type metadata struct {
|
type metadata struct {
|
||||||
start uint64 // start block number
|
start uint64 // start block number
|
||||||
count uint64 // number of blocks in the era
|
count uint64 // number of blocks in the era
|
||||||
components uint64 // number of slots per block in the index
|
components uint64 // number of slots per block in the index
|
||||||
layout map[componentType]int // component → slot index, derived from on-disk type tags
|
layout map[componentType]int // component → slot index, derived from on-disk type tags
|
||||||
length int64 // length of the file in bytes
|
length int64 // length of the file in bytes
|
||||||
}
|
}
|
||||||
|
|
||||||
// componentType identifies a kind of per-block entry (header, body, etc.).
|
// componentType identifies a kind of per-block entry (header, body, etc.).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue