improve log statements

This commit is contained in:
William Banfield
2022-05-19 13:43:26 -04:00
parent 8d9b227566
commit fa8f2ee0aa
2 changed files with 2 additions and 2 deletions

View File

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

View File

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