From 00a1e9c5b54581e7d3ae7d7165e0ae7ebe093b93 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 20 May 2022 10:44:35 -0400 Subject: [PATCH] use second block commit instead of ext commit in persistence logic --- internal/blocksync/reactor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/blocksync/reactor.go b/internal/blocksync/reactor.go index 60ce1ab1f..472efd582 100644 --- a/internal/blocksync/reactor.go +++ b/internal/blocksync/reactor.go @@ -629,7 +629,7 @@ func (r *Reactor) poolRoutine(ctx context.Context, stateSynced bool, blockSyncCh if state.ConsensusParams.ABCI.VoteExtensionsEnabled(first.Height) { r.store.SaveBlockWithExtendedCommit(first, firstParts, extCommit) } else { - r.store.SaveBlock(first, firstParts, extCommit.ToCommit()) + r.store.SaveBlock(first, firstParts, second.LastCommit) } // TODO: Same thing for app - but we would need a way to get the hash