use second block commit instead of ext commit in persistence logic

This commit is contained in:
William Banfield
2022-05-20 10:44:35 -04:00
parent 06e70e4d7d
commit 00a1e9c5b5

View File

@@ -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