Documentation
¶
Index ¶
Constants ¶
View Source
const (
ChainUpdateEventType = "chain.update"
)
Variables ¶
View Source
var ErrBlockNotFound = errors.New("block not found")
View Source
var ErrIteratorChainTip = errors.New("chain iterator is at chain tip")
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) FromPoint ¶
FromPoint returns a ChainIterator starting at the specified point. If inclusive is true, the iterator will start at the specified point. Otherwise it will start at the point following the specified point
func (*Chain) Tip ¶
func (c *Chain) Tip() ochainsync.Tip
type ChainIterator ¶
type ChainIterator struct {
// contains filtered or unexported fields
}
func (*ChainIterator) Next ¶
func (ci *ChainIterator) Next(blocking bool) (*ChainIteratorResult, error)
type ChainIteratorResult ¶
type ChainRollbackEvent ¶
Click to show internal directories.
Click to hide internal directories.