Documentation
¶
Overview ¶
Package pkg comments for pkg block block 块相关数据封装
Index ¶
- func HasTx(chainID string, minHeight, maxHeight int64) ([]*types.ResultBlockBase, error)
- func Latest(chainID string) (*types.ResultBlockBase, error)
- func Retrieve(chainID string, mheight int64) (*types.ResultBlockBase, error)
- func RetrieveConsensusState(chainID string) (*types.ResultConsensusState, error)
- func Save(b *tmtypes.ResultBlock) error
- func Search(chainID string, minHeight, maxHeight int64) ([]*types.ResultBlockBase, error)
- func UpdateConsensusState(chainID string, cs *tmctypes.ResultConsensusState) error
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 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.