Skip to content

Commit

Permalink
Merge pull request #3 from Chia-Network/ensure-increasing
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Apr 19, 2023
2 parents f5940b0 + 959fc0e commit 9509131
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/healthcheck/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,16 @@ func (h *Healthcheck) fullNodeReceive(resp *types.WebsocketResponse) {
return
}

// Edge case, but we should be sure block height is increasing
if block.Height <= h.lastHeight {
return
}

h.lastHeight = block.Height
h.lastHeightTime = time.Now()
}

func (h *Healthcheck) walletReceive(resp *types.WebsocketResponse) {

}
func (h *Healthcheck) walletReceive(resp *types.WebsocketResponse) {}

func (h *Healthcheck) crawlerReceive(resp *types.WebsocketResponse) {}

Expand Down

0 comments on commit 9509131

Please sign in to comment.