Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
5c9961c8
Commit
5c9961c8
authored
Mar 20, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cfcd3fab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
server.go
exchain/exchainapi/server.go
+1
-0
service.go
op-node/service.go
+8
-0
No files found.
exchain/exchainapi/server.go
View file @
5c9961c8
...
@@ -104,6 +104,7 @@ func (s *server) GetCoinInfo(ctx context.Context, request *nodev1.GetCoinInfoReq
...
@@ -104,6 +104,7 @@ func (s *server) GetCoinInfo(ctx context.Context, request *nodev1.GetCoinInfoReq
func
StartServer
(
logger
log
.
Logger
,
grpcPort
int
,
gwPort
int
,
chain
chaindb
.
ChainReader
)
error
{
func
StartServer
(
logger
log
.
Logger
,
grpcPort
int
,
gwPort
int
,
chain
chaindb
.
ChainReader
)
error
{
defer
logger
.
Info
(
"grpc and gateway server stopped"
)
defer
logger
.
Info
(
"grpc and gateway server stopped"
)
logger
.
Info
(
"starting grpc and gateway server"
,
"grpcPort"
,
grpcPort
,
"gwPort"
,
gwPort
)
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
ctx
,
cancel
:=
context
.
WithCancel
(
ctx
)
ctx
,
cancel
:=
context
.
WithCancel
(
ctx
)
defer
cancel
()
defer
cancel
()
...
...
op-node/service.go
View file @
5c9961c8
...
@@ -84,6 +84,14 @@ func NewConfig(ctx *cli.Context, log log.Logger) (*node.Config, error) {
...
@@ -84,6 +84,14 @@ func NewConfig(ctx *cli.Context, log log.Logger) (*node.Config, error) {
ListenPort
:
ctx
.
Int
(
flags
.
RPCListenPort
.
Name
),
ListenPort
:
ctx
.
Int
(
flags
.
RPCListenPort
.
Name
),
EnableAdmin
:
ctx
.
Bool
(
flags
.
RPCEnableAdmin
.
Name
),
EnableAdmin
:
ctx
.
Bool
(
flags
.
RPCEnableAdmin
.
Name
),
},
},
GRPC
:
node
.
GRPCConfig
{
ListenAddr
:
ctx
.
String
(
flags
.
GRPCListenAddr
.
Name
),
ListenPort
:
ctx
.
Int
(
flags
.
GRPCListenPort
.
Name
),
},
GW
:
node
.
GWConfig
{
ListenAddr
:
ctx
.
String
(
flags
.
GWListenAddr
.
Name
),
ListenPort
:
ctx
.
Int
(
flags
.
GWListenPort
.
Name
),
},
Metrics
:
node
.
MetricsConfig
{
Metrics
:
node
.
MetricsConfig
{
Enabled
:
ctx
.
Bool
(
flags
.
MetricsEnabledFlag
.
Name
),
Enabled
:
ctx
.
Bool
(
flags
.
MetricsEnabledFlag
.
Name
),
ListenAddr
:
ctx
.
String
(
flags
.
MetricsAddrFlag
.
Name
),
ListenAddr
:
ctx
.
String
(
flags
.
MetricsAddrFlag
.
Name
),
...
...
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