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
5c2a7ce2
Unverified
Commit
5c2a7ce2
authored
Jan 04, 2021
by
rene
Committed by
GitHub
Jan 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
node: rename startNetworking to openEndpoints (#22105)
parent
47820ef7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
node.go
node/node.go
+7
-4
No files found.
node/node.go
View file @
5c2a7ce2
...
...
@@ -159,12 +159,13 @@ func (n *Node) Start() error {
return
ErrNodeStopped
}
n
.
state
=
runningState
err
:=
n
.
startNetworking
()
// open networking and RPC endpoints
err
:=
n
.
openEndpoints
()
lifecycles
:=
make
([]
Lifecycle
,
len
(
n
.
lifecycles
))
copy
(
lifecycles
,
n
.
lifecycles
)
n
.
lock
.
Unlock
()
// Check if
networking
startup failed.
// Check if
endpoint
startup failed.
if
err
!=
nil
{
n
.
doClose
(
nil
)
return
err
...
...
@@ -247,12 +248,14 @@ func (n *Node) doClose(errs []error) error {
}
}
// startNetworking starts all network endpoints.
func
(
n
*
Node
)
startNetworking
()
error
{
// openEndpoints starts all network and RPC endpoints.
func
(
n
*
Node
)
openEndpoints
()
error
{
// start networking endpoints
n
.
log
.
Info
(
"Starting peer-to-peer node"
,
"instance"
,
n
.
server
.
Name
)
if
err
:=
n
.
server
.
Start
();
err
!=
nil
{
return
convertFileLockError
(
err
)
}
// start RPC endpoints
err
:=
n
.
startRPC
()
if
err
!=
nil
{
n
.
stopRPC
()
...
...
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