mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-20 14:59:26 +00:00
check config.start key
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
20a3a7ded2
commit
43f74243e5
1 changed files with 1 additions and 1 deletions
|
|
@ -612,7 +612,7 @@ func (ts *traverseSetup) traverseState(ctx context.Context, counters *traverseCo
|
||||||
|
|
||||||
if ts.config != nil {
|
if ts.config != nil {
|
||||||
// Skip branches that are entirely before startKey
|
// Skip branches that are entirely before startKey
|
||||||
if limitKey != nil && bytes.Compare(limitKey, ts.config.startKey) <= 0 {
|
if ts.config.startKey != nil && limitKey != nil && bytes.Compare(limitKey, ts.config.startKey) <= 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue