Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
a425a47d
Unverified
Commit
a425a47d
authored
Dec 27, 2020
by
ucwong
Committed by
GitHub
Dec 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/rawdb, eth/protocols : Method name typo fix (#22026)
parent
c17a7733
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
accessors_snapshot.go
core/rawdb/accessors_snapshot.go
+2
-2
sync.go
eth/protocols/snap/sync.go
+1
-1
No files found.
core/rawdb/accessors_snapshot.go
View file @
a425a47d
...
...
@@ -176,8 +176,8 @@ func DeleteSnapshotRecoveryNumber(db ethdb.KeyValueWriter) {
}
}
// ReadS
an
pshotSyncStatus retrieves the serialized sync status saved at shutdown.
func
ReadS
an
pshotSyncStatus
(
db
ethdb
.
KeyValueReader
)
[]
byte
{
// ReadS
na
pshotSyncStatus retrieves the serialized sync status saved at shutdown.
func
ReadS
na
pshotSyncStatus
(
db
ethdb
.
KeyValueReader
)
[]
byte
{
data
,
_
:=
db
.
Get
(
snapshotSyncStatusKey
)
return
data
}
...
...
eth/protocols/snap/sync.go
View file @
a425a47d
...
...
@@ -614,7 +614,7 @@ func (s *Syncer) Sync(root common.Hash, cancel chan struct{}) error {
func
(
s
*
Syncer
)
loadSyncStatus
()
{
var
progress
syncProgress
if
status
:=
rawdb
.
ReadS
an
pshotSyncStatus
(
s
.
db
);
status
!=
nil
{
if
status
:=
rawdb
.
ReadS
na
pshotSyncStatus
(
s
.
db
);
status
!=
nil
{
if
err
:=
json
.
Unmarshal
(
status
,
&
progress
);
err
!=
nil
{
log
.
Error
(
"Failed to decode snap sync status"
,
"err"
,
err
)
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment