Documentation ¶
Index ¶
- func ToABCIBlock(block *types.Block) (*tmtypes.Block, error)
- func ToABCIBlockDataTxs(data *types.Data) []tmtypes.Tx
- func ToABCIBlockMeta(block *types.Block) (*tmtypes.BlockMeta, error)
- func ToABCICommit(commit *types.Commit, header *types.Header) *tmtypes.Commit
- func ToABCIHeader(header *types.Header) tmtypes.Header
- func ToABCIHeaderPB(header *types.Header) tmproto.Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToABCIBlock ¶
ToABCIBlock converts Dymint block into block format defined by ABCI. Returned block should pass `ValidateBasic`.
func ToABCIBlockDataTxs ¶
ToABCIBlockDataTxs converts Dymint block-data into block-data format defined by ABCI.
func ToABCIBlockMeta ¶
ToABCIBlockMeta converts Dymint block into BlockMeta format defined by ABCI
func ToABCICommit ¶
ToABCICommit converts Dymint commit into commit format defined by ABCI. This function only converts fields that are available in Dymint commit. Other fields (especially ValidatorAddress and Timestamp of Signature) has to be filled by caller.
func ToABCIHeader ¶
ToABCIHeader converts Dymint header to Header format defined in ABCI. Caller should fill all the fields that are not available in Dymint header (like ChainID).
Types ¶
This section is empty.