Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
validator
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
validator
Commits
7647f98b
Commit
7647f98b
authored
May 30, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
078bc23b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
config.toml
config.toml
+1
-1
validator.go
core/validator.go
+2
-1
No files found.
config.toml
View file @
7647f98b
...
@@ -8,7 +8,7 @@ api-listen = "0.0.0.0:20012"
...
@@ -8,7 +8,7 @@ api-listen = "0.0.0.0:20012"
private-key
=
"529f4efb80ac534f17d873104c71881c0970dbd5a886f183f63c5c6bb7a1fcd9"
private-key
=
"529f4efb80ac534f17d873104c71881c0970dbd5a886f183f63c5c6bb7a1fcd9"
chain-rpc
=
"https://dev.rpc.a
gicoin
.ai"
chain-rpc
=
"https://dev.rpc.a
onet
.ai"
store-contract
=
"0xA0ec84eCa14CD23afD5D7ba973390E83F0Cbe89A"
store-contract
=
"0xA0ec84eCa14CD23afD5D7ba973390E83F0Cbe89A"
...
...
core/validator.go
View file @
7647f98b
...
@@ -275,7 +275,7 @@ func (v *Validator) SealProof(miner common.Address, proof *validatorv1.Validated
...
@@ -275,7 +275,7 @@ func (v *Validator) SealProof(miner common.Address, proof *validatorv1.Validated
return
err
return
err
}
}
log
.
WithFields
(
log
.
Fields
{
log
.
WithFields
(
log
.
Fields
{
"miner"
:
miner
.
Hex
()
,
"miner"
:
miner
Object
.
Miner
,
"old_balance"
:
oldBalance
,
"old_balance"
:
oldBalance
,
"new_balance"
:
minerObject
.
Balance
,
"new_balance"
:
minerObject
.
Balance
,
})
.
Info
(
"seal proof"
)
})
.
Info
(
"seal proof"
)
...
@@ -288,6 +288,7 @@ func (v *Validator) RefreshPendingProof() (proof map[common.Address]*validatorv1
...
@@ -288,6 +288,7 @@ func (v *Validator) RefreshPendingProof() (proof map[common.Address]*validatorv1
proof
=
make
(
map
[
common
.
Address
]
*
validatorv1
.
ValidatedProof
)
proof
=
make
(
map
[
common
.
Address
]
*
validatorv1
.
ValidatedProof
)
for
timestamp
,
pendingProofMap
:=
range
v
.
pendingProof
{
for
timestamp
,
pendingProofMap
:=
range
v
.
pendingProof
{
if
timestamp
!=
v
.
todayTimestamp
()
{
if
timestamp
!=
v
.
todayTimestamp
()
{
// todo syncjob模式下需适配
continue
continue
}
}
for
miner
,
pendingProof
:=
range
pendingProofMap
{
for
miner
,
pendingProof
:=
range
pendingProofMap
{
...
...
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