appdb

package
Version: v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDB

type AppDB struct {
	// contains filtered or unexported fields
}

func NewAppDB

func NewAppDB(cfg *config.Config) *AppDB

func (*AppDB) Close

func (appDB *AppDB) Close()

func (*AppDB) GetLastBlockHash

func (appDB *AppDB) GetLastBlockHash() []byte

func (*AppDB) GetLastBlocksTimeDelta

func (appDB *AppDB) GetLastBlocksTimeDelta(height uint64) (int, error)

func (*AppDB) GetLastHeight

func (appDB *AppDB) GetLastHeight() uint64

func (*AppDB) GetStartHeight

func (appDB *AppDB) GetStartHeight() uint64

func (*AppDB) GetValidators

func (appDB *AppDB) GetValidators() types.ValidatorUpdates

func (*AppDB) SaveValidators

func (appDB *AppDB) SaveValidators(vals types.ValidatorUpdates)

func (*AppDB) SetLastBlockHash

func (appDB *AppDB) SetLastBlockHash(hash []byte)

func (*AppDB) SetLastBlocksTimeDelta

func (appDB *AppDB) SetLastBlocksTimeDelta(height uint64, delta int)

func (*AppDB) SetLastHeight

func (appDB *AppDB) SetLastHeight(height uint64)

func (*AppDB) SetStartHeight

func (appDB *AppDB) SetStartHeight(height uint64)

type LastBlocksTimeDelta

type LastBlocksTimeDelta struct {
	Height uint64
	Delta  int
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL