mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Fix formatting and comments in history_trienode.go
This commit is contained in:
parent
af14bfca24
commit
f471ec9f8f
1 changed files with 2 additions and 2 deletions
|
|
@ -396,12 +396,12 @@ func decodeRestartTrailer(keySection []byte) ([]uint32, []uint32, int, error) {
|
|||
return nil, nil, 0, fmt.Errorf("key section too short, size: %d", len(keySection))
|
||||
}
|
||||
nRestarts := binary.BigEndian.Uint32(keySection[len(keySection)-4:])
|
||||
|
||||
// Decode the trailer
|
||||
var (
|
||||
keyOffsets = make([]uint32, 0, int(nRestarts))
|
||||
valOffsets = make([]uint32, 0, int(nRestarts))
|
||||
)
|
||||
|
||||
// Decode the trailer
|
||||
if len(keySection) < int(8*nRestarts)+4 {
|
||||
return nil, nil, 0, fmt.Errorf("key section too short, restarts: %d, size: %d", nRestarts, len(keySection))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue