From 976624592b512978c40f19912e8bb09ca02526d4 Mon Sep 17 00:00:00 2001 From: Kishan Sagathiya Date: Tue, 1 Nov 2022 22:55:57 +0800 Subject: [PATCH 1/2] Update dot/state/block.go Co-authored-by: Quentin McGaw --- dot/state/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot/state/block.go b/dot/state/block.go index ae89f12b7e..10513ec434 100644 --- a/dot/state/block.go +++ b/dot/state/block.go @@ -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 { From 95531c9c786210ca7ca137af9e8c8fb641fac30f Mon Sep 17 00:00:00 2001 From: Kishan Sagathiya Date: Tue, 1 Nov 2022 22:56:12 +0800 Subject: [PATCH 2/2] Update lib/babe/verify.go Co-authored-by: Quentin McGaw --- lib/babe/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/babe/verify.go b/lib/babe/verify.go index 57745a8e3e..0f7dc0d08c 100644 --- a/lib/babe/verify.go +++ b/lib/babe/verify.go @@ -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 {