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
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
706e2881
Unverified
Commit
706e2881
authored
4 years ago
by
Jaynti Kanani
Browse files
Options
Downloads
Patches
Plain Diff
new: heimdall flags
parent
6cb5e628
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cmd/geth/chaincmd.go
+5
-1
5 additions, 1 deletion
cmd/geth/chaincmd.go
cmd/geth/config.go
+1
-1
1 addition, 1 deletion
cmd/geth/config.go
cmd/geth/main.go
+6
-2
6 additions, 2 deletions
cmd/geth/main.go
cmd/utils/bor_flags.go
+6
-0
6 additions, 0 deletions
cmd/utils/bor_flags.go
with
18 additions
and
4 deletions
cmd/geth/chaincmd.go
+
5
−
1
View file @
706e2881
...
...
@@ -74,7 +74,7 @@ The dumpgenesis command dumps the genesis block configuration in JSON format to
Action
:
utils
.
MigrateFlags
(
importChain
),
Name
:
"import"
,
Usage
:
"Import a blockchain file"
,
ArgsUsage
:
"<filename> (<filename 2> ... <filename N>) "
,
ArgsUsage
:
"<filename> (<filename 2> ... <filename N>)
<genesisPath>
"
,
Flags
:
[]
cli
.
Flag
{
utils
.
DataDirFlag
,
utils
.
CacheFlag
,
...
...
@@ -94,6 +94,10 @@ The dumpgenesis command dumps the genesis block configuration in JSON format to
utils
.
MetricsInfluxDBPasswordFlag
,
utils
.
MetricsInfluxDBTagsFlag
,
utils
.
TxLookupLimitFlag
,
// bor related flags
utils
.
HeimdallURLFlag
,
utils
.
WithoutHeimdallFlag
,
},
Category
:
"BLOCKCHAIN COMMANDS"
,
Description
:
`
...
...
This diff is collapsed.
Click to expand it.
cmd/geth/config.go
+
1
−
1
View file @
706e2881
...
...
@@ -111,7 +111,7 @@ func defaultNodeConfig() node.Config {
cfg
.
Version
=
params
.
VersionWithCommit
(
gitCommit
,
gitDate
)
cfg
.
HTTPModules
=
append
(
cfg
.
HTTPModules
,
"eth"
)
cfg
.
WSModules
=
append
(
cfg
.
WSModules
,
"eth"
)
cfg
.
IPCPath
=
"geth
.ipc"
cfg
.
IPCPath
=
clientIdentifier
+
"
.ipc"
return
cfg
}
...
...
This diff is collapsed.
Click to expand it.
cmd/geth/main.go
+
6
−
2
View file @
706e2881
...
...
@@ -46,7 +46,8 @@ import (
)
const
(
clientIdentifier
=
"geth"
// Client identifier to advertise over the network
clientIdentifier
=
"bor"
// Client identifier to advertise over the network
repositoryIdentifier
=
"go-bor"
)
var
(
...
...
@@ -54,7 +55,7 @@ var (
gitCommit
=
""
gitDate
=
""
// The app that holds all commands and flags.
app
=
flags
.
NewApp
(
gitCommit
,
gitDate
,
"the go-ethereum
command line interface"
)
app
=
flags
.
NewApp
(
gitCommit
,
gitDate
,
fmt
.
Sprintf
(
"the %s
command line interface"
,
repositoryIdentifier
)
)
// flags that configure the node
nodeFlags
=
[]
cli
.
Flag
{
utils
.
IdentityFlag
,
...
...
@@ -259,6 +260,9 @@ func init() {
app
.
Flags
=
append
(
app
.
Flags
,
whisperFlags
...
)
app
.
Flags
=
append
(
app
.
Flags
,
metricsFlags
...
)
// add bor flags
app
.
Flags
=
append
(
app
.
Flags
,
utils
.
BorFlags
...
)
app
.
Before
=
func
(
ctx
*
cli
.
Context
)
error
{
return
debug
.
Setup
(
ctx
)
}
...
...
This diff is collapsed.
Click to expand it.
cmd/utils/bor_flags.go
+
6
−
0
View file @
706e2881
...
...
@@ -29,6 +29,12 @@ var (
Name
:
"bor.withoutheimdall"
,
Usage
:
"Run without Heimdall service (for testing purpose)"
,
}
// BorFlags all bor related flags
BorFlags
=
[]
cli
.
Flag
{
HeimdallURLFlag
,
WithoutHeimdallFlag
,
}
)
func
getGenesis
(
genesisPath
string
)
(
*
core
.
Genesis
,
error
)
{
...
...
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