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
2c579846
Unverified
Commit
2c579846
authored
Apr 03, 2023
by
lightclient
Committed by
GitHub
Apr 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: delete MakeName (#27023)
common,p2p: remove unused function MakeName
parent
dc2f4b93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
path.go
common/path.go
+0
-9
server.go
p2p/server.go
+0
-1
No files found.
common/path.go
View file @
2c579846
...
@@ -17,19 +17,10 @@
...
@@ -17,19 +17,10 @@
package
common
package
common
import
(
import
(
"fmt"
"os"
"os"
"path/filepath"
"path/filepath"
"runtime"
)
)
// 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
())
}
// FileExist checks if a file exists at filePath.
// FileExist checks if a file exists at filePath.
func
FileExist
(
filePath
string
)
bool
{
func
FileExist
(
filePath
string
)
bool
{
_
,
err
:=
os
.
Stat
(
filePath
)
_
,
err
:=
os
.
Stat
(
filePath
)
...
...
p2p/server.go
View file @
2c579846
...
@@ -94,7 +94,6 @@ type Config struct {
...
@@ -94,7 +94,6 @@ type Config struct {
DiscoveryV5
bool
`toml:",omitempty"`
DiscoveryV5
bool
`toml:",omitempty"`
// Name sets the node name of this server.
// Name sets the node name of this server.
// Use common.MakeName to create a name that follows existing conventions.
Name
string
`toml:"-"`
Name
string
`toml:"-"`
// BootstrapNodes are used to establish connectivity
// BootstrapNodes are used to establish connectivity
...
...
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