mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-29 10:30:20 +00:00
improve log statements
This commit is contained in:
@@ -498,7 +498,7 @@ func (bs *BlockStore) SaveBlockWithExtendedCommit(block *types.Block, blockParts
|
||||
panic("BlockStore can only save a non-nil block")
|
||||
}
|
||||
if err := seenExtendedCommit.EnsureExtensions(); err != nil {
|
||||
panic(fmt.Errorf("saving block with extensions %w", err))
|
||||
panic(fmt.Errorf("saving block with extensions: %w", err))
|
||||
}
|
||||
batch := bs.db.NewBatch()
|
||||
if err := bs.saveBlockToBatch(batch, block, blockParts, seenExtendedCommit.ToCommit()); err != nil {
|
||||
|
||||
@@ -773,7 +773,7 @@ func (ecs ExtendedCommitSig) ValidateBasic() error {
|
||||
// this ExtendedCommitSig.
|
||||
func (ecs ExtendedCommitSig) EnsureExtension() error {
|
||||
if ecs.BlockIDFlag == BlockIDFlagCommit && len(ecs.ExtensionSignature) == 0 {
|
||||
return errors.New("vote extension signature is missing")
|
||||
return errors.New("vote extension data is missing")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user