Skip to content

Commit

Permalink
Merge branch 'kishan/fix/err-equivocatory-blocks' of github.com:Chain…
Browse files Browse the repository at this point in the history
…Safe/gossamer into kishan/fix/err-equivocatory-blocks
  • Loading branch information
kishansagathiya committed Nov 2, 2022
2 parents 2dcb8cd + 95531c9 commit 40d0c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dot/state/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (bs *BlockState) GetHashByNumber(num uint) (common.Hash, error) {
return common.NewHash(bh), nil
}

// GetBlockHashesBySlot gets all blocks that were produced in given slot.
// GetBlockHashesBySlot gets all block hashes that were produced in the given slot.
func (bs *BlockState) GetBlockHashesBySlot(slotNum uint64) ([]common.Hash, error) {
highestFinalisedHash, err := bs.GetHighestFinalisedHash()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion lib/babe/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (b *verifier) verifyAuthorshipRight(header *types.Header) error {
}

// verifyBlockEquivocation checks if the given block's author has occupied the corresponding slot more than once.
// It returns true if block was equivocated.
// It returns true if the block was equivocated.
func (b *verifier) verifyBlockEquivocation(header *types.Header) (bool, error) {
author, err := getAuthorityIndex(header)
if err != nil {
Expand Down

0 comments on commit 40d0c1f

Please sign in to comment.