Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prunable ¶
type RootBlocks ¶
func NewRootBlocks ¶
func NewRootBlocks(databaseInstance *database.Manager, storagePrefix byte) (newRootBlocks *RootBlocks)
NewRootBlocks creates a new RootBlocks instance.
func (*RootBlocks) Delete ¶
func (r *RootBlocks) Delete(blockID models.BlockID) (err error)
Delete deletes the given blockID from the root blocks.
func (*RootBlocks) Has ¶
func (r *RootBlocks) Has(blockID models.BlockID) (has bool, err error)
Has returns true if the given blockID is a root block.
func (*RootBlocks) Store ¶
func (r *RootBlocks) Store(id models.BlockID, commitmentID commitment.ID) (err error)
Store stores the given blockID as a root block.
Click to show internal directories.
Click to hide internal directories.