Skip to content

Commit 72617a0

Browse files
gballetkaralabe
authored andcommitted
consensus: fix possessives in comments. (#20209)
1 parent db79143 commit 72617a0

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎consensus/clique/clique.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (c *Clique) verifyCascadingFields(chain consensus.ChainReader, header *type
311311
if number == 0 {
312312
return nil
313313
}
314-
// Ensure that the block's timestamp isn't too close to it's parent
314+
// Ensure that the block's timestamp isn't too close to its parent
315315
var parent *types.Header
316316
if len(parents) > 0 {
317317
parent = parents[len(parents)-1]
@@ -522,7 +522,7 @@ func (c *Clique) Prepare(chain consensus.ChainReader, header *types.Header) erro
522522
// Set the correct difficulty
523523
header.Difficulty = CalcDifficulty(snap, c.signer)
524524

525-
// Ensure the extra data has all it's components
525+
// Ensure the extra data has all its components
526526
if len(header.Extra) < extraVanity {
527527
header.Extra = append(header.Extra, bytes.Repeat([]byte{0x00}, extraVanity-len(header.Extra))...)
528528
}

‎consensus/errors.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var (
3131
// to the current node.
3232
ErrFutureBlock = errors.New("block in the future")
3333

34-
// ErrInvalidNumber is returned if a block's number doesn't equal it's parent's
34+
// ErrInvalidNumber is returned if a block's number doesn't equal its parent's
3535
// plus one.
3636
ErrInvalidNumber = errors.New("invalid block number")
3737
)

‎consensus/ethash/consensus.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (ethash *Ethash) VerifyHeader(chain consensus.ChainReader, header *types.He
8686
if ethash.config.PowMode == ModeFullFake {
8787
return nil
8888
}
89-
// Short circuit if the header is known, or it's parent not
89+
// Short circuit if the header is known, or its parent not
9090
number := header.Number.Uint64()
9191
if chain.GetHeader(header.Hash(), number) != nil {
9292
return nil
@@ -252,7 +252,7 @@ func (ethash *Ethash) verifyHeader(chain consensus.ChainReader, header, parent *
252252
if header.Time <= parent.Time {
253253
return errZeroBlockTime
254254
}
255-
// Verify the block's difficulty based in it's timestamp and parent's difficulty
255+
// Verify the block's difficulty based in its timestamp and parent's difficulty
256256
expected := ethash.CalcDifficulty(chain, header.Time, parent)
257257

258258
if expected.Cmp(header.Difficulty) != 0 {

0 commit comments

Comments
 (0)