Documentation ¶
Index ¶
- func CreateDB()
- type Block
- type DB
- func (c *DB) BlockExists(blockNumber int64) bool
- func (c *DB) GetBlock(blockNumber int64) (*Block, error)
- func (c *DB) LatestBlockNumber() int64
- func (c *DB) SaveBlock(b *Block) error
- func (c *DB) Start()
- func (c *DB) State() (minBlock int64, maxBlock int64, countOfBlocks int, network string)
- func (c *DB) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
var Instance *DB
func (*DB) BlockExists ¶
func (*DB) LatestBlockNumber ¶
Click to show internal directories.
Click to hide internal directories.