From 60a60002e0652448b49900a03525a395e9049608 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 19 May 2022 20:03:40 -0400 Subject: [PATCH] only error if ext commit expected --- internal/blocksync/reactor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/blocksync/reactor.go b/internal/blocksync/reactor.go index 682150a9f..8abf87862 100644 --- a/internal/blocksync/reactor.go +++ b/internal/blocksync/reactor.go @@ -200,9 +200,9 @@ func (r *Reactor) respondToPeer(ctx context.Context, msg *bcproto.BlockRequest, var extCommit *types.ExtendedCommit if state.ConsensusParams.ABCI.VoteExtensionsEnabled(msg.Height) { extCommit = r.store.LoadBlockExtendedCommit(msg.Height) - } - if extCommit == nil { - return fmt.Errorf("found block in store with no commit and no extended commit: %v", block) + if extCommit == nil { + return fmt.Errorf("found block in store with no commit and no extended commit for height: %d", block.Height) + } } blockProto, err := block.ToProto() if err != nil {