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
83d317cf
Unverified
Commit
83d317cf
authored
Jan 06, 2021
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/utils, eth/downloader: minor snap nitpicks
parent
61845421
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
flags.go
cmd/utils/flags.go
+0
-1
downloader.go
eth/downloader/downloader.go
+2
-2
No files found.
cmd/utils/flags.go
View file @
83d317cf
...
@@ -1568,7 +1568,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
...
@@ -1568,7 +1568,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
// If snap-sync is requested, this flag is also required
// If snap-sync is requested, this flag is also required
if
cfg
.
SyncMode
==
downloader
.
SnapSync
{
if
cfg
.
SyncMode
==
downloader
.
SnapSync
{
log
.
Info
(
"Snap sync requested, enabling --snapshot"
)
log
.
Info
(
"Snap sync requested, enabling --snapshot"
)
ctx
.
Set
(
SnapshotFlag
.
Name
,
"true"
)
}
else
{
}
else
{
cfg
.
TrieCleanCache
+=
cfg
.
SnapshotCache
cfg
.
TrieCleanCache
+=
cfg
.
SnapshotCache
cfg
.
SnapshotCache
=
0
// Disabled
cfg
.
SnapshotCache
=
0
// Disabled
...
...
eth/downloader/downloader.go
View file @
83d317cf
...
@@ -89,7 +89,7 @@ var (
...
@@ -89,7 +89,7 @@ var (
errCancelContentProcessing
=
errors
.
New
(
"content processing canceled (requested)"
)
errCancelContentProcessing
=
errors
.
New
(
"content processing canceled (requested)"
)
errCanceled
=
errors
.
New
(
"syncing canceled (requested)"
)
errCanceled
=
errors
.
New
(
"syncing canceled (requested)"
)
errNoSyncActive
=
errors
.
New
(
"no sync active"
)
errNoSyncActive
=
errors
.
New
(
"no sync active"
)
errTooOld
=
errors
.
New
(
"peer
doesn't speak recent enough protocol version (need version >= 64)
"
)
errTooOld
=
errors
.
New
(
"peer
's protocol version too old
"
)
)
)
type
Downloader
struct
{
type
Downloader
struct
{
...
@@ -460,7 +460,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td *big.I
...
@@ -460,7 +460,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td *big.I
}
}
}()
}()
if
p
.
version
<
64
{
if
p
.
version
<
64
{
return
fmt
.
Errorf
(
"%w
, peer version: %d"
,
errTooOld
,
p
.
version
)
return
fmt
.
Errorf
(
"%w
: advertized %d < required %d"
,
errTooOld
,
p
.
version
,
64
)
}
}
mode
:=
d
.
getMode
()
mode
:=
d
.
getMode
()
...
...
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