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
05b1ec00
Commit
05b1ec00
authored
Feb 18, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled ability to disable whisper. Closes #334
parent
60318c96
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
flags.go
cmd/ethereum/flags.go
+1
-1
main.go
cmd/ethereum/main.go
+1
-1
main.go
cmd/mist/main.go
+1
-0
backend.go
eth/backend.go
+5
-1
No files found.
cmd/ethereum/flags.go
View file @
05b1ec00
...
@@ -132,7 +132,7 @@ func Init() {
...
@@ -132,7 +132,7 @@ func Init() {
natstr
=
flag
.
String
(
"nat"
,
"any"
,
"port mapping mechanism (any|none|upnp|pmp|extip:<IP>)"
)
natstr
=
flag
.
String
(
"nat"
,
"any"
,
"port mapping mechanism (any|none|upnp|pmp|extip:<IP>)"
)
)
)
flag
.
BoolVar
(
&
Dial
,
"dial"
,
true
,
"dial out connections (default on)"
)
flag
.
BoolVar
(
&
Dial
,
"dial"
,
true
,
"dial out connections (default on)"
)
flag
.
BoolVar
(
&
SHH
,
"shh"
,
true
,
"run whisper protocol (default on)"
)
//
flag.BoolVar(&SHH, "shh", true, "run whisper protocol (default on)")
flag
.
StringVar
(
&
OutboundPort
,
"port"
,
"30303"
,
"listening port"
)
flag
.
StringVar
(
&
OutboundPort
,
"port"
,
"30303"
,
"listening port"
)
flag
.
StringVar
(
&
BootNodes
,
"bootnodes"
,
""
,
"space-separated node URLs for discovery bootstrap"
)
flag
.
StringVar
(
&
BootNodes
,
"bootnodes"
,
""
,
"space-separated node URLs for discovery bootstrap"
)
...
...
cmd/ethereum/main.go
View file @
05b1ec00
...
@@ -71,7 +71,7 @@ func main() {
...
@@ -71,7 +71,7 @@ func main() {
Port
:
OutboundPort
,
Port
:
OutboundPort
,
NAT
:
NAT
,
NAT
:
NAT
,
KeyRing
:
KeyRing
,
KeyRing
:
KeyRing
,
Shh
:
SHH
,
Shh
:
true
,
Dial
:
Dial
,
Dial
:
Dial
,
BootNodes
:
BootNodes
,
BootNodes
:
BootNodes
,
NodeKey
:
NodeKey
,
NodeKey
:
NodeKey
,
...
...
cmd/mist/main.go
View file @
05b1ec00
...
@@ -60,6 +60,7 @@ func run() error {
...
@@ -60,6 +60,7 @@ func run() error {
MaxPeers
:
MaxPeer
,
MaxPeers
:
MaxPeer
,
Port
:
OutboundPort
,
Port
:
OutboundPort
,
NAT
:
NAT
,
NAT
:
NAT
,
Shh
:
true
,
BootNodes
:
BootNodes
,
BootNodes
:
BootNodes
,
NodeKey
:
NodeKey
,
NodeKey
:
NodeKey
,
KeyRing
:
KeyRing
,
KeyRing
:
KeyRing
,
...
...
eth/backend.go
View file @
05b1ec00
...
@@ -160,7 +160,11 @@ func New(config *Config) (*Ethereum, error) {
...
@@ -160,7 +160,11 @@ func New(config *Config) (*Ethereum, error) {
eth
.
blockPool
=
NewBlockPool
(
hasBlock
,
insertChain
,
ezp
.
Verify
)
eth
.
blockPool
=
NewBlockPool
(
hasBlock
,
insertChain
,
ezp
.
Verify
)
ethProto
:=
EthProtocol
(
eth
.
txPool
,
eth
.
chainManager
,
eth
.
blockPool
)
ethProto
:=
EthProtocol
(
eth
.
txPool
,
eth
.
chainManager
,
eth
.
blockPool
)
protocols
:=
[]
p2p
.
Protocol
{
ethProto
,
eth
.
whisper
.
Protocol
()}
protocols
:=
[]
p2p
.
Protocol
{
ethProto
}
if
config
.
Shh
{
protocols
=
append
(
protocols
,
eth
.
whisper
.
Protocol
())
}
netprv
:=
config
.
NodeKey
netprv
:=
config
.
NodeKey
if
netprv
==
nil
{
if
netprv
==
nil
{
if
netprv
,
err
=
crypto
.
GenerateKey
();
err
!=
nil
{
if
netprv
,
err
=
crypto
.
GenerateKey
();
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