Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Olshansky <[email protected]>
  • Loading branch information
adshmh and Olshansk authored Jun 19, 2024
1 parent 19777c3 commit 62e7108
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ import (
)

// TODO_IDEA: The BlockClient could leverage websockets to get notified about new blocks
// and cache the latest block height to avoid querying the blockchain for it every time.
// and cache the latest block height to avoid querying the blockchain for it every time.

// A BlockClient is used to interact with the on-chain block module.
// BlockClient is a concrete types used to interact with the on-chain block module.
// For example, it can be used to get the latest block height.
//
// PoktNodeStatusFetcher specifies the functionality required by the
// BlockClient to interact with a POKT full node.
//
// For obtaining the latest height, BlockClient uses a POKT full
// node's status which contains the latest block height.
// This is done to avoid fetching the entire latest block just to extract the block height.
// For obtaining the latest height, BlockClient uses a POKT full node's status
// which contains the latest block height. This is done to avoid fetching the
// entire latest block just to extract the block height.
type BlockClient struct {
// PoktNodeStatusFetcher specifies the functionality required by the
// BlockClient to interact with a POKT full node.
PoktNodeStatusFetcher
}

Expand Down

0 comments on commit 62e7108

Please sign in to comment.