appdb

package
v1.1.0-beta8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 7 Imported by: 6 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v0.9.0

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

func (*AppDB) GetLastHeight

func (appDB *AppDB) GetLastHeight() uint64

func (*AppDB) GetStartHeight added in v0.16.0

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 added in v0.9.0

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

func (*AppDB) SetLastHeight

func (appDB *AppDB) SetLastHeight(height uint64)

func (*AppDB) SetStartHeight added in v0.16.0

func (appDB *AppDB) SetStartHeight(height uint64)

type LastBlocksTimeDelta added in v0.9.0

type LastBlocksTimeDelta struct {
	Height uint64
	Delta  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL