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
fa8ca32e
Commit
fa8ca32e
authored
Mar 25, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix day process
parent
edb287cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.gitignore
.gitignore
+2
-1
validator.go
core/validator.go
+1
-1
No files found.
.gitignore
View file @
fa8ca32e
...
...
@@ -7,4 +7,5 @@ gen
.DS_Store
*.exe
build
data
\ No newline at end of file
data
cdk-deploy
\ No newline at end of file
core/validator.go
View file @
fa8ca32e
...
...
@@ -114,7 +114,7 @@ func (v *Validator) AddPendingProof(miner common.Address, proof *validatorv1.Val
// ProcessDayJob 每日任务
func
(
v
*
Validator
)
ProcessDayJob
()
{
dbLastDay
,
_
:=
getDBLastDayRoot
(
v
.
lvdb
)
if
dbLastDay
==
v
.
date
&&
v
.
date
!=
""
{
if
dbLastDay
==
v
.
yesterdayString
()
&&
v
.
date
!=
""
{
log
.
WithField
(
"date"
,
v
.
date
)
.
Warn
(
"already process day job"
)
return
}
...
...
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