From f62ef4cc76eae025e7ad7bae8d8f21101e0c705f Mon Sep 17 00:00:00 2001 From: Andrew Gouin Date: Wed, 8 Nov 2023 15:42:05 -0700 Subject: [PATCH] Fix off by one (#387) --- controllers/cosmosfullnode_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/cosmosfullnode_controller.go b/controllers/cosmosfullnode_controller.go index b2988091..005a955f 100644 --- a/controllers/cosmosfullnode_controller.go +++ b/controllers/cosmosfullnode_controller.go @@ -240,7 +240,7 @@ func (r *CosmosFullNodeReconciler) updateStatus( if status.Height == nil { status.Height = make(map[string]uint64) } - status.Height[k] = *v.Height + status.Height[k] = *v.Height + 1 // we want the block that is going through consensus, not the committed one. } } if status.SelfHealing.PVCAutoScale != nil {