From b6797c1339390610cfd7b6b775c461e6174cae07 Mon Sep 17 00:00:00 2001 From: Andrew Gouin Date: Wed, 8 Nov 2023 15:40:02 -0700 Subject: [PATCH] Fix off by one --- 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 {