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
19866075
Commit
19866075
authored
Aug 06, 2017
by
Egon Elbre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
node: fix megacheck warnings
parent
b159cdd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
config.go
node/config.go
+2
-2
utils_test.go
node/utils_test.go
+0
-2
No files found.
node/config.go
View file @
19866075
...
...
@@ -35,7 +35,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/discover"
)
var
(
const
(
datadirPrivateKey
=
"nodekey"
// Path within the datadir to the node's private key
datadirDefaultKeyStore
=
"keystore"
// Path within the datadir to the keystore
datadirStaticNodes
=
"static-nodes.json"
// Path within the datadir to the static node list
...
...
@@ -160,7 +160,7 @@ func (c *Config) NodeDB() string {
if
c
.
DataDir
==
""
{
return
""
// ephemeral
}
return
c
.
resolvePath
(
"nodes"
)
return
c
.
resolvePath
(
datadirNodeDatabase
)
}
// DefaultIPCEndpoint returns the IPC path used by default.
...
...
node/utils_test.go
View file @
19866075
...
...
@@ -41,12 +41,10 @@ func NewNoopService(*ServiceContext) (Service, error) { return new(NoopService),
type
NoopServiceA
struct
{
NoopService
}
type
NoopServiceB
struct
{
NoopService
}
type
NoopServiceC
struct
{
NoopService
}
type
NoopServiceD
struct
{
NoopService
}
func
NewNoopServiceA
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceA
),
nil
}
func
NewNoopServiceB
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceB
),
nil
}
func
NewNoopServiceC
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceC
),
nil
}
func
NewNoopServiceD
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceD
),
nil
}
// InstrumentedService is an implementation of Service for which all interface
// methods can be instrumented both return value as well as event hook wise.
...
...
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