Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExist = errors.New("header already exists") ErrNotExist = errors.New("header does not exist") )
Errors exported by the package.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo manages block headers and the best path through the tree of headers by using a topological sort of the headers to identify the path with the longest distance.
func NewRepo ¶
NewRepo creates a new simple header store. TODO: load the headers from disk on startup
Click to show internal directories.
Click to hide internal directories.