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
080699f7
Commit
080699f7
authored
Dec 13, 2016
by
zelig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/swarm: ethapi not required
parent
8e35f549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
main.go
cmd/swarm/main.go
+4
-6
No files found.
cmd/swarm/main.go
View file @
080699f7
...
...
@@ -254,13 +254,11 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
boot
:=
func
(
ctx
*
node
.
ServiceContext
)
(
node
.
Service
,
error
)
{
var
client
*
ethclient
.
Client
if
ethapi
==
""
{
err
=
fmt
.
Errorf
(
"use ethapi flag to connect to a an eth client and talk to the blockchain"
)
}
else
{
if
len
(
ethapi
)
>
0
{
client
,
err
=
ethclient
.
Dial
(
ethapi
)
}
if
err
!=
nil
{
utils
.
Fatalf
(
"Can't connect: %v"
,
err
)
if
err
!=
nil
{
utils
.
Fatalf
(
"Can't connect: %v"
,
err
)
}
}
return
swarm
.
NewSwarm
(
ctx
,
client
,
bzzconfig
,
swapEnabled
,
syncEnabled
)
}
...
...
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