pg

package
v0.0.0-...-78693a7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const QueryGetMaxHeight = `SELECT coalesce(max(height), 0) FROM cosmos.blocks`

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksWithCountTxs

type BlocksWithCountTxs struct {
	Height   int64
	NumTx    int64
	CountTxs int64
}

type PgDatastore

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

func Init

func Init(config *config.Config) (*PgDatastore, error)

func (*PgDatastore) BlockStatusChange

func (ds *PgDatastore) BlockStatusChange(height int64)

func (*PgDatastore) GetAllLostBlocks

func (ds *PgDatastore) GetAllLostBlocks() []int64

func (*PgDatastore) GetAllLostTransactions

func (ds *PgDatastore) GetAllLostTransactions() []int64

func (*PgDatastore) GetAllLostTransactionsHashes

func (ds *PgDatastore) GetAllLostTransactionsHashes() []string

func (*PgDatastore) GetBlocksWithCountTxs

func (ds *PgDatastore) GetBlocksWithCountTxs() []BlocksWithCountTxs

func (*PgDatastore) GetLastConsistencyBlock

func (ds *PgDatastore) GetLastConsistencyBlock() (height int64)

func (*PgDatastore) GetLostBlocks

func (ds *PgDatastore) GetLostBlocks() []int64

func (*PgDatastore) GetMaxHeight

func (ds *PgDatastore) GetMaxHeight() (height int, err error)

func (*PgDatastore) GetMinBlockHeight

func (ds *PgDatastore) GetMinBlockHeight() (height int64)

func (*PgDatastore) SetConsistency

func (ds *PgDatastore) SetConsistency(height int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳