Skip to content

Commit

Permalink
fix(lib/babe): fix err log (ChainSafe#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
noot authored Sep 22, 2021
1 parent edd9b19 commit a96f06a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/babe/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,9 @@ func (b *verifier) verifyAuthorshipRight(header *types.Header) error {

header.Digest = h
defer func() {
err = header.Digest.Add(sealItem.Value())
logger.Error("Error adding item to digest", "error", err)
if err = header.Digest.Add(sealItem.Value()); err != nil {
logger.Error("failed to re-add seal to digest", "error", err)
}
}()

encHeader, err := scale.Marshal(*header)
Expand Down

0 comments on commit a96f06a

Please sign in to comment.