Skip to content

Commit

Permalink
internal/ethapi: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Aug 16, 2024
1 parent 79d4bef commit e339e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ func (s *BlockChainAPI) getFinalizedNumber(ctx context.Context, probabilisticFin
}

// GetFinalizedHeader returns the requested finalized block header.
// - probabilisticFinalized should be in range [0,len(currentValidators],
// - probabilisticFinalized should be in range [0,len(currentValidators)],
// then the block header with number `max(fastFinalizedHeight, probabilisticFinalizedHeight)` is returned
// - The return result is monotonically increasing.
func (s *BlockChainAPI) GetFinalizedHeader(ctx context.Context, probabilisticFinalized int64) (map[string]interface{}, error) {
Expand All @@ -912,7 +912,7 @@ func (s *BlockChainAPI) GetFinalizedHeader(ctx context.Context, probabilisticFin
}

// GetFinalizedBlock returns the requested finalized block.
// - probabilisticFinalized should be in range [0,len(currentValidators],
// - probabilisticFinalized should be in range [0,len(currentValidators)],
// then the block header with number `max(fastFinalizedHeight, probabilisticFinalizedHeight)` is returned
// - When fullTx is true all transactions in the block are returned, otherwise
// only the transaction hash is returned.
Expand Down

0 comments on commit e339e24

Please sign in to comment.