good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
a425a47d
Unverified
Commit
a425a47d
authored
Dec 27, 2020
by
ucwong
Committed by
GitHub
Dec 27, 2020
Browse files
Options
Downloads
Patches
Plain Diff
core/rawdb, eth/protocols : Method name typo fix (#22026)
parent
c17a7733
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/rawdb/accessors_snapshot.go
+2
-2
2 additions, 2 deletions
core/rawdb/accessors_snapshot.go
eth/protocols/snap/sync.go
+1
-1
1 addition, 1 deletion
eth/protocols/snap/sync.go
with
3 additions
and
3 deletions
core/rawdb/accessors_snapshot.go
+
2
−
2
View file @
a425a47d
...
@@ -176,8 +176,8 @@ func DeleteSnapshotRecoveryNumber(db ethdb.KeyValueWriter) {
...
@@ -176,8 +176,8 @@ func DeleteSnapshotRecoveryNumber(db ethdb.KeyValueWriter) {
}
}
}
}
// ReadS
a
npshotSyncStatus retrieves the serialized sync status saved at shutdown.
// ReadSn
a
pshotSyncStatus retrieves the serialized sync status saved at shutdown.
func
ReadS
a
npshotSyncStatus
(
db
ethdb
.
KeyValueReader
)
[]
byte
{
func
ReadSn
a
pshotSyncStatus
(
db
ethdb
.
KeyValueReader
)
[]
byte
{
data
,
_
:=
db
.
Get
(
snapshotSyncStatusKey
)
data
,
_
:=
db
.
Get
(
snapshotSyncStatusKey
)
return
data
return
data
}
}
...
...
This diff is collapsed.
Click to expand it.
eth/protocols/snap/sync.go
+
1
−
1
View file @
a425a47d
...
@@ -614,7 +614,7 @@ func (s *Syncer) Sync(root common.Hash, cancel chan struct{}) error {
...
@@ -614,7 +614,7 @@ func (s *Syncer) Sync(root common.Hash, cancel chan struct{}) error {
func
(
s
*
Syncer
)
loadSyncStatus
()
{
func
(
s
*
Syncer
)
loadSyncStatus
()
{
var
progress
syncProgress
var
progress
syncProgress
if
status
:=
rawdb
.
ReadS
a
npshotSyncStatus
(
s
.
db
);
status
!=
nil
{
if
status
:=
rawdb
.
ReadSn
a
pshotSyncStatus
(
s
.
db
);
status
!=
nil
{
if
err
:=
json
.
Unmarshal
(
status
,
&
progress
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
(
status
,
&
progress
);
err
!=
nil
{
log
.
Error
(
"Failed to decode snap sync status"
,
"err"
,
err
)
log
.
Error
(
"Failed to decode snap sync status"
,
"err"
,
err
)
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment