good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
3b3843e1
Commit
3b3843e1
authored
Mar 12, 2015
by
Jeffrey Wilcke
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
parents
ef670669
2a0e5888
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmd/utils/flags.go
+1
-2
1 addition, 2 deletions
cmd/utils/flags.go
ethutil/common.go
+7
-0
7 additions, 0 deletions
ethutil/common.go
p2p/server.go
+1
-9
1 addition, 9 deletions
p2p/server.go
with
9 additions
and
11 deletions
cmd/utils/flags.go
+
1
−
2
View file @
3b3843e1
...
@@ -18,7 +18,6 @@ import (
...
@@ -18,7 +18,6 @@ import (
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/xeth"
"github.com/ethereum/go-ethereum/xeth"
...
@@ -194,7 +193,7 @@ func GetNodeKey(ctx *cli.Context) (key *ecdsa.PrivateKey) {
...
@@ -194,7 +193,7 @@ func GetNodeKey(ctx *cli.Context) (key *ecdsa.PrivateKey) {
func
GetEthereum
(
clientID
,
version
string
,
ctx
*
cli
.
Context
)
(
*
eth
.
Ethereum
,
error
)
{
func
GetEthereum
(
clientID
,
version
string
,
ctx
*
cli
.
Context
)
(
*
eth
.
Ethereum
,
error
)
{
return
eth
.
New
(
&
eth
.
Config
{
return
eth
.
New
(
&
eth
.
Config
{
Name
:
p2p
.
MakeName
(
clientID
,
version
),
Name
:
ethutil
.
MakeName
(
clientID
,
version
),
DataDir
:
ctx
.
GlobalString
(
DataDirFlag
.
Name
),
DataDir
:
ctx
.
GlobalString
(
DataDirFlag
.
Name
),
LogFile
:
ctx
.
GlobalString
(
LogFileFlag
.
Name
),
LogFile
:
ctx
.
GlobalString
(
LogFileFlag
.
Name
),
LogLevel
:
ctx
.
GlobalInt
(
LogLevelFlag
.
Name
),
LogLevel
:
ctx
.
GlobalInt
(
LogLevelFlag
.
Name
),
...
...
This diff is collapsed.
Click to expand it.
ethutil/common.go
+
7
−
0
View file @
3b3843e1
...
@@ -13,6 +13,13 @@ import (
...
@@ -13,6 +13,13 @@ import (
"github.com/kardianos/osext"
"github.com/kardianos/osext"
)
)
// MakeName creates a node name that follows the ethereum convention
// for such names. It adds the operation system name and Go runtime version
// the name.
func
MakeName
(
name
,
version
string
)
string
{
return
fmt
.
Sprintf
(
"%s/v%s/%s/%s"
,
name
,
version
,
runtime
.
GOOS
,
runtime
.
Version
())
}
func
DefaultAssetPath
()
string
{
func
DefaultAssetPath
()
string
{
var
assetPath
string
var
assetPath
string
pwd
,
_
:=
os
.
Getwd
()
pwd
,
_
:=
os
.
Getwd
()
...
...
This diff is collapsed.
Click to expand it.
p2p/server.go
+
1
−
9
View file @
3b3843e1
...
@@ -6,7 +6,6 @@ import (
...
@@ -6,7 +6,6 @@ import (
"errors"
"errors"
"fmt"
"fmt"
"net"
"net"
"runtime"
"sync"
"sync"
"time"
"time"
...
@@ -33,13 +32,6 @@ const (
...
@@ -33,13 +32,6 @@ const (
var
srvlog
=
logger
.
NewLogger
(
"P2P Server"
)
var
srvlog
=
logger
.
NewLogger
(
"P2P Server"
)
var
srvjslog
=
logger
.
NewJsonLogger
()
var
srvjslog
=
logger
.
NewJsonLogger
()
// MakeName creates a node name that follows the ethereum convention
// for such names. It adds the operation system name and Go runtime version
// the name.
func
MakeName
(
name
,
version
string
)
string
{
return
fmt
.
Sprintf
(
"%s/v%s/%s/%s"
,
name
,
version
,
runtime
.
GOOS
,
runtime
.
Version
())
}
// Server manages all peer connections.
// Server manages all peer connections.
//
//
// The fields of Server are used as configuration parameters.
// The fields of Server are used as configuration parameters.
...
@@ -54,7 +46,7 @@ type Server struct {
...
@@ -54,7 +46,7 @@ type Server struct {
MaxPeers
int
MaxPeers
int
// Name sets the node name of this server.
// Name sets the node name of this server.
// Use MakeName to create a name that follows existing conventions.
// Use
ethutil.
MakeName to create a name that follows existing conventions.
Name
string
Name
string
// Bootstrap nodes are used to establish connectivity
// Bootstrap nodes are used to establish connectivity
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment