Documentation ¶
Index ¶
- Variables
- func DisableLog()
- func UseLogger(logger elalog.Logger)
- type Database
- func (d *Database) Clear() error
- func (d *Database) Close() error
- func (d *Database) Get(hash *common.Uint256) (header *util.Header, err error)
- func (d *Database) GetBest() (header *util.Header, err error)
- func (d *Database) GetPrevious(header *util.Header) (*util.Header, error)
- func (d *Database) Put(header *util.Header, newTip bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BKTHeaders = []byte("H") BKTChainTip = []byte("B") )
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type Database ¶
Headers implements Headers using bolt DB
func NewDatabase ¶
func (*Database) GetPrevious ¶
Click to show internal directories.
Click to hide internal directories.