mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 21:26:42 +00:00
typo
This commit is contained in:
parent
9e80e2fd1d
commit
d778ea25e4
1 changed files with 4 additions and 3 deletions
|
|
@ -445,7 +445,7 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
|
|||
)
|
||||
|
||||
processRange := func(ctx context.Context, rangePrefix []byte) error {
|
||||
var start = []byte(nil)
|
||||
var start []byte
|
||||
|
||||
if len(keyStart) > 0 && len(rangePrefix) > 0 {
|
||||
r0, s0 := rangePrefix[0], keyStart[0]
|
||||
|
|
@ -453,8 +453,9 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
|
|||
// Skip ranges that are entirely before keyStart
|
||||
return nil
|
||||
} else if r0 == s0 {
|
||||
// Only apply keyStart to the range that contains it
|
||||
start = keyStart[1:] // skip the first byte, as it's in rangePrefix
|
||||
// Only apply keyStart to the range that contains it,
|
||||
// skip the first byte, as it's already in rangePrefix
|
||||
start = keyStart[1:]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue