tendermint: github.com/tendermint/tendermint/rpc/core/types Index | Files

package core_types

import "github.com/tendermint/tendermint/rpc/core/types"

Index

Package Files

codec.go responses.go

func RegisterAmino Uses

func RegisterAmino(cdc *amino.Codec)

type Peer Uses

type Peer struct {
    NodeInfo         p2p.DefaultNodeInfo  `json:"node_info"`
    IsOutbound       bool                 `json:"is_outbound"`
    ConnectionStatus p2p.ConnectionStatus `json:"connection_status"`
    RemoteIP         string               `json:"remote_ip"`
}

A peer

type PeerStateInfo Uses

type PeerStateInfo struct {
    NodeAddress string          `json:"node_address"`
    PeerState   json.RawMessage `json:"peer_state"`
}

UNSTABLE

type ResultABCIInfo Uses

type ResultABCIInfo struct {
    Response abci.ResponseInfo `json:"response"`
}

Info abci msg

type ResultABCIQuery Uses

type ResultABCIQuery struct {
    Response abci.ResponseQuery `json:"response"`
}

Query abci msg

type ResultBlock Uses

type ResultBlock struct {
    BlockMeta *types.BlockMeta `json:"block_meta"`
    Block     *types.Block     `json:"block"`
}

Single block (with meta)

type ResultBlockResults Uses

type ResultBlockResults struct {
    Height  int64                `json:"height"`
    Results *state.ABCIResponses `json:"results"`
}

ABCI results from a block

type ResultBlockchainInfo Uses

type ResultBlockchainInfo struct {
    LastHeight int64              `json:"last_height"`
    BlockMetas []*types.BlockMeta `json:"block_metas"`
}

List of blocks

type ResultBroadcastEvidence Uses

type ResultBroadcastEvidence struct {
    Hash []byte `json:"hash"`
}

Result of broadcasting evidence

type ResultBroadcastTx Uses

type ResultBroadcastTx struct {
    Code uint32       `json:"code"`
    Data cmn.HexBytes `json:"data"`
    Log  string       `json:"log"`

    Hash cmn.HexBytes `json:"hash"`
}

CheckTx result

type ResultBroadcastTxCommit Uses

type ResultBroadcastTxCommit struct {
    CheckTx   abci.ResponseCheckTx   `json:"check_tx"`
    DeliverTx abci.ResponseDeliverTx `json:"deliver_tx"`
    Hash      cmn.HexBytes           `json:"hash"`
    Height    int64                  `json:"height"`
}

CheckTx and DeliverTx results

type ResultCommit Uses

type ResultCommit struct {
    types.SignedHeader `json:"signed_header"`
    CanonicalCommit    bool `json:"canonical"`
}

Commit and Header

func NewResultCommit Uses

func NewResultCommit(header *types.Header, commit *types.Commit,
    canonical bool) *ResultCommit

NewResultCommit is a helper to initialize the ResultCommit with the embedded struct

type ResultConsensusParams Uses

type ResultConsensusParams struct {
    BlockHeight     int64                 `json:"block_height"`
    ConsensusParams types.ConsensusParams `json:"consensus_params"`
}

ConsensusParams for given height

type ResultConsensusState Uses

type ResultConsensusState struct {
    RoundState json.RawMessage `json:"round_state"`
}

UNSTABLE

type ResultDialPeers Uses

type ResultDialPeers struct {
    Log string `json:"log"`
}

Log from dialing peers

type ResultDialSeeds Uses

type ResultDialSeeds struct {
    Log string `json:"log"`
}

Log from dialing seeds

type ResultDumpConsensusState Uses

type ResultDumpConsensusState struct {
    RoundState json.RawMessage `json:"round_state"`
    Peers      []PeerStateInfo `json:"peers"`
}

Info about the consensus state. UNSTABLE

type ResultEvent Uses

type ResultEvent struct {
    Query  string              `json:"query"`
    Data   types.TMEventData   `json:"data"`
    Events map[string][]string `json:"events"`
}

Event data from a subscription

type ResultGenesis Uses

type ResultGenesis struct {
    Genesis *types.GenesisDoc `json:"genesis"`
}

Genesis file

type ResultHealth Uses

type ResultHealth struct{}

empty results

type ResultNetInfo Uses

type ResultNetInfo struct {
    Listening bool     `json:"listening"`
    Listeners []string `json:"listeners"`
    NPeers    int      `json:"n_peers"`
    Peers     []Peer   `json:"peers"`
}

Info about peer connections

type ResultStatus Uses

type ResultStatus struct {
    NodeInfo      p2p.DefaultNodeInfo `json:"node_info"`
    SyncInfo      SyncInfo            `json:"sync_info"`
    ValidatorInfo ValidatorInfo       `json:"validator_info"`
}

Node Status

func (*ResultStatus) TxIndexEnabled Uses

func (s *ResultStatus) TxIndexEnabled() bool

Is TxIndexing enabled

type ResultSubscribe Uses

type ResultSubscribe struct{}

empty results

type ResultTx Uses

type ResultTx struct {
    Hash     cmn.HexBytes           `json:"hash"`
    Height   int64                  `json:"height"`
    Index    uint32                 `json:"index"`
    TxResult abci.ResponseDeliverTx `json:"tx_result"`
    Tx       types.Tx               `json:"tx"`
    Proof    types.TxProof          `json:"proof,omitempty"`
}

Result of querying for a tx

type ResultTxSearch Uses

type ResultTxSearch struct {
    Txs        []*ResultTx `json:"txs"`
    TotalCount int         `json:"total_count"`
}

Result of searching for txs

type ResultUnconfirmedTxs Uses

type ResultUnconfirmedTxs struct {
    Count      int        `json:"n_txs"`
    Total      int        `json:"total"`
    TotalBytes int64      `json:"total_bytes"`
    Txs        []types.Tx `json:"txs"`
}

List of mempool txs

type ResultUnsafeFlushMempool Uses

type ResultUnsafeFlushMempool struct{}

empty results

type ResultUnsafeProfile Uses

type ResultUnsafeProfile struct{}

empty results

type ResultUnsubscribe Uses

type ResultUnsubscribe struct{}

empty results

type ResultValidators Uses

type ResultValidators struct {
    BlockHeight int64              `json:"block_height"`
    Validators  []*types.Validator `json:"validators"`
}

Validators for a height

type SyncInfo Uses

type SyncInfo struct {
    LatestBlockHash   cmn.HexBytes `json:"latest_block_hash"`
    LatestAppHash     cmn.HexBytes `json:"latest_app_hash"`
    LatestBlockHeight int64        `json:"latest_block_height"`
    LatestBlockTime   time.Time    `json:"latest_block_time"`
    CatchingUp        bool         `json:"catching_up"`
}

Info about the node's syncing state

type ValidatorInfo Uses

type ValidatorInfo struct {
    Address     cmn.HexBytes  `json:"address"`
    PubKey      crypto.PubKey `json:"pub_key"`
    VotingPower int64         `json:"voting_power"`
}

Info about the node's validator

Package core_types imports 9 packages (graph) and is imported by 106 packages. Updated 2019-07-24. Refresh now. Tools for package owners.