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

fix day process

parent edb287cb
......@@ -8,3 +8,4 @@ gen
*.exe
build
data
cdk-deploy
\ No newline at end of file
......@@ -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
}
......
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