Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LatestBlockTracker ¶
type LatestBlockTracker struct {
// contains filtered or unexported fields
}
LatestBlockTracker is a component that tracks the ID of the latest Block.
func New ¶
func New() (newLatestBlockTracker *LatestBlockTracker)
New return a new LatestBlockTracker.
func (*LatestBlockTracker) BlockID ¶
func (t *LatestBlockTracker) BlockID() (blockID models.BlockID)
BlockID returns the ID of the latest seen Block.
func (*LatestBlockTracker) Update ¶
func (t *LatestBlockTracker) Update(block *models.Block)
Update updates the latest seen Block.
Click to show internal directories.
Click to hide internal directories.