Skip to content

Commit

Permalink
consensus: add docstring for getParent
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-EA committed Apr 20, 2023
1 parent 2429de9 commit 964775c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ func getVoteAttestationFromHeader(header *types.Header, chainConfig *params.Chai
return &attestation, nil
}

// getParent returns the parent of a given block.
func (p *Parlia) getParent(chain consensus.ChainHeaderReader, header *types.Header, parents []*types.Header) (*types.Header, error) {
var parent *types.Header
number := header.Number.Uint64()
Expand Down

0 comments on commit 964775c

Please sign in to comment.