Commit fa8ca32e authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

fix day process

parent edb287cb
...@@ -7,4 +7,5 @@ gen ...@@ -7,4 +7,5 @@ gen
.DS_Store .DS_Store
*.exe *.exe
build build
data data
\ No newline at end of file cdk-deploy
\ No newline at end of file
...@@ -114,7 +114,7 @@ func (v *Validator) AddPendingProof(miner common.Address, proof *validatorv1.Val ...@@ -114,7 +114,7 @@ func (v *Validator) AddPendingProof(miner common.Address, proof *validatorv1.Val
// ProcessDayJob 每日任务 // ProcessDayJob 每日任务
func (v *Validator) ProcessDayJob() { func (v *Validator) ProcessDayJob() {
dbLastDay, _ := getDBLastDayRoot(v.lvdb) 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") log.WithField("date", v.date).Warn("already process day job")
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment