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
7b3e3d54
Commit
7b3e3d54
authored
Feb 18, 2019
by
Matthew Halpern
Committed by
Péter Szilágyi
Feb 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
node: prefer nil slices over zero-length slices (#19083)
parent
3930f379
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
config.go
node/config.go
+1
-1
node.go
node/node.go
+1
-1
No files found.
node/config.go
View file @
7b3e3d54
...
...
@@ -466,7 +466,7 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) {
return
nil
,
""
,
err
}
// Assemble the account manager and supported backends
backends
:=
[]
accounts
.
Backend
{}
var
backends
[]
accounts
.
Backend
if
len
(
conf
.
ExternalSigner
)
>
0
{
log
.
Info
(
"Using external signer"
,
"url"
,
conf
.
ExternalSigner
)
if
extapi
,
err
:=
external
.
NewExternalBackend
(
conf
.
ExternalSigner
);
err
==
nil
{
...
...
node/node.go
View file @
7b3e3d54
...
...
@@ -220,7 +220,7 @@ func (n *Node) Start() error {
return
convertFileLockError
(
err
)
}
// Start each of the services
started
:=
[]
reflect
.
Type
{}
var
started
[]
reflect
.
Type
for
kind
,
service
:=
range
services
{
// Start the next service, stopping all previous upon failure
if
err
:=
service
.
Start
(
running
);
err
!=
nil
{
...
...
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