Documentation ¶
Index ¶
- type DB
- func (db *DB) AppendBlock(block *monomer.Block) error
- func (db *DB) BlockByHash(hash common.Hash) (*monomer.Block, error)
- func (db *DB) BlockByHeight(height uint64) (*monomer.Block, error)
- func (db *DB) BlockByLabel(label eth.BlockLabel) (*monomer.Block, error)
- func (db *DB) HeadBlock() (*monomer.Block, error)
- func (db *DB) HeadHeader() (*monomer.Header, error)
- func (db *DB) HeaderByHash(hash common.Hash) (*monomer.Header, error)
- func (db *DB) HeaderByHeight(height uint64) (*monomer.Header, error)
- func (db *DB) HeaderByLabel(label eth.BlockLabel) (*monomer.Header, error)
- func (db *DB) Height() (uint64, error)
- func (db *DB) Rollback(unsafe, safe, finalized common.Hash) error
- func (db *DB) UpdateLabels(unsafe, safe, finalized common.Hash) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AppendBlock ¶
AppendBlock does no validity checks and does not update labels.
func (*DB) BlockByLabel ¶
func (*DB) HeaderByLabel ¶
Click to show internal directories.
Click to hide internal directories.