Documentation
¶
Index ¶
- Constants
- type BlocksWithCountTxs
- type PgDatastore
- func (ds *PgDatastore) BlockStatusChange(height int64)
- func (ds *PgDatastore) GetAllLostBlocks() []int64
- func (ds *PgDatastore) GetAllLostTransactions() []int64
- func (ds *PgDatastore) GetAllLostTransactionsHashes() []string
- func (ds *PgDatastore) GetBlocksWithCountTxs() []BlocksWithCountTxs
- func (ds *PgDatastore) GetLastConsistencyBlock() (height int64)
- func (ds *PgDatastore) GetLostBlocks() []int64
- func (ds *PgDatastore) GetMaxHeight() (height int, err error)
- func (ds *PgDatastore) GetMinBlockHeight() (height int64)
- func (ds *PgDatastore) SetConsistency(height int64)
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 PgDatastore ¶
type PgDatastore struct {
// contains filtered or unexported fields
}
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)
Click to show internal directories.
Click to hide internal directories.