mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-21 22:56:22 +00:00
ensure extensions on extended commit save
This commit is contained in:
@@ -497,6 +497,9 @@ func (bs *BlockStore) SaveBlockWithExtendedCommit(block *types.Block, blockParts
|
||||
if block == nil {
|
||||
panic("BlockStore can only save a non-nil block")
|
||||
}
|
||||
if err := seenExtendedCommit.EnsureExtensions(); err != nil {
|
||||
panic(fmt.Sprintf("saving block with extensions %w", err))
|
||||
}
|
||||
batch := bs.db.NewBatch()
|
||||
if err := bs.saveBlockToBatch(batch, block, blockParts, seenExtendedCommit.ToCommit()); err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user