Documentation
¶
Index ¶
- Constants
- func GetCheckpointBuffer(cdc *codec.Codec) *cobra.Command
- func GetCheckpointByNumber(cdc *codec.Codec) *cobra.Command
- func GetCheckpointCount(cdc *codec.Codec) *cobra.Command
- func GetCheckpointLatest(cdc *codec.Codec) *cobra.Command
- func GetCheckpointList(cdc *codec.Codec) *cobra.Command
- func GetLastNoACK(cdc *codec.Codec) *cobra.Command
- func GetOverview(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func GetQueryParams(cdc *codec.Codec) *cobra.Command
- func GetTxCmd(cdc *codec.Codec) *cobra.Command
- func SendCheckpointACKTx(cdc *codec.Codec) *cobra.Command
- func SendCheckpointAdjust(cdc *codec.Codec) *cobra.Command
- func SendCheckpointNoACKTx(cdc *codec.Codec) *cobra.Command
- func SendCheckpointTx(cdc *codec.Codec) *cobra.Command
- type CheckpointWithID
Constants ¶
View Source
const ( FlagProposerAddress = "proposer" FlagFromAddress = "from" FlagStartBlock = "start-block" FlagEndBlock = "end-block" FlagRootHash = "root-hash" FlagAccountRootHash = "account-root-hash" FlagZenaChainID = "zena-chain-id" FlagHeaderNumber = "header" FlagCheckpointTxHash = "txhash" FlagCheckpointLogIndex = "log-index" FlagAutoConfigure = "auto-configure" FlagLimit = "limit" FlagPage = "page" )
Variables ¶
This section is empty.
Functions ¶
func GetCheckpointBuffer ¶
GetCheckpointBuffer get checkpoint present in buffer
func GetCheckpointByNumber ¶
GetHeaderFromIndex get checkpoint given header index
func GetCheckpointCount ¶
GetCheckpointCount get number of checkpoint received count
func GetCheckpointLatest ¶
GetCheckpointLatest get the latest checkpoint
func GetCheckpointList ¶
GetLastNoACK get last no ack time
func GetLastNoACK ¶
GetLastNoACK get last no ack time
func GetOverview ¶
GetOverview gives the complete state dump of iris
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func GetQueryParams ¶
GetQueryParams implements the params query command.
func SendCheckpointACKTx ¶
SendCheckpointACKTx send checkpoint ack transaction
func SendCheckpointAdjust ¶
SendCheckpointAdjust adjusts previous checkpoint transaction
func SendCheckpointNoACKTx ¶
SendCheckpointNoACKTx send no-ack transaction
Types ¶
type CheckpointWithID ¶
type CheckpointWithID struct {
ID uint64 `json:"id"`
Proposer hmTypes.IrisAddress `json:"proposer"`
StartBlock uint64 `json:"start_block"`
EndBlock uint64 `json:"end_block"`
RootHash hmTypes.IrisHash `json:"root_hash"`
ZenaChainID string `json:"zena_chain_id"`
TimeStamp uint64 `json:"timestamp"`
}
Temporary Checkpoint struct to store the Checkpoint ID
Click to show internal directories.
Click to hide internal directories.