block

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package pkg comments for pkg block block 块相关数据封装

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasTx

func HasTx(chainID string, minHeight, maxHeight int64) ([]*types.ResultBlockBase, error)

HasTx 有交易的块

func Latest

func Latest(chainID string) (*types.ResultBlockBase, error)

Latest最新的块

func Retrieve

func Retrieve(chainID string, mheight int64) (*types.ResultBlockBase, error)

Retrieve 块查询

func RetrieveConsensusState

func RetrieveConsensusState(chainID string) (*types.ResultConsensusState, error)

func Save

func Save(b *tmtypes.ResultBlock) error
func Search(chainID string, minHeight, maxHeight int64) ([]*types.ResultBlockBase, error)

Search 块查询

func UpdateConsensusState

func UpdateConsensusState(chainID string, cs *tmctypes.ResultConsensusState) error

UpdateConsensusState 更新共识状态

Types

This section is empty.

Jump to

Keyboard shortcuts

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