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