Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
power-node
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
Odysseus
power-node
Commits
a7f300a9
Commit
a7f300a9
authored
Feb 02, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add validator url
parent
705814c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
config.go
conf/config.go
+1
-0
config.json
config.json
+2
-1
validator.go
validator/validator.go
+1
-1
No files found.
conf/config.go
View file @
a7f300a9
...
...
@@ -20,6 +20,7 @@ type Config struct {
NodeManagerNum
int64
`json:"node_manager_num"`
ChainID
int64
`json:"chain_id"`
ApiUrl
string
`json:"api_url"`
ValidatorUrl
string
`json:"validator_url"`
}
var
_cfg
*
Config
=
nil
...
...
config.json
View file @
a7f300a9
...
...
@@ -6,5 +6,6 @@
"heart_response"
:
30
,
"task_validator_time"
:
1
,
"container_num"
:
1
,
"chain_id"
:
100
"chain_id"
:
100
,
"validator_url"
:
"192.168.1.211:9431"
}
\ No newline at end of file
validator/validator.go
View file @
a7f300a9
...
...
@@ -108,7 +108,7 @@ func (p *ProofWorker) ProofStorage() {
}
func
(
p
*
ProofWorker
)
CommitWitness
()
{
validatorClient
:=
operate
.
ConnValidatorGrpc
(
"192.168.1.211:9431"
)
validatorClient
:=
operate
.
ConnValidatorGrpc
(
conf
.
GetConfig
()
.
ValidatorUrl
)
for
{
select
{
case
proofs
:=
<-
p
.
consumeProofChan
:
...
...
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