message

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitReq

type CommitReq struct {
	Block *types.Block
}

CommitReq consensusactor->chainactor

type GetAllPendingTrxReq

type GetAllPendingTrxReq struct {
}

GetAllPendingTrxReq the key of pending trx query

type GetAllPendingTrxRsp

type GetAllPendingTrxRsp struct {
	Trxs []*types.Transaction
}

GetAllPendingTrxRsp the response of pending trx query

type InsertBlockReq

type InsertBlockReq struct {
	Block *types.Block
}

InsertBlockReq block info

type InsertBlockRsp

type InsertBlockRsp struct {
	Hash  common.Hash
	Error error
}

InsertBlockRsp the response of insert block

type NotifyBlock

type NotifyBlock struct {
	Block *types.Block
}

NotifyBlock producer->p2pactor

type NotifyTrx

type NotifyTrx struct {
	P2PTrx *types.P2PTransaction
}

NotifyTrx txactor->p2pactor

type PrecommitReq

type PrecommitReq struct {
	Block *types.Block
}

PrecommitReq consensusactor->chainactor

type PrecommitResp

type PrecommitResp struct {
	BlockNum uint64
	ErrorNo  berr.ErrCode
	MainFork bool
}

PrecommitReq chainactor->p2pactor

type PrevoteReq

type PrevoteReq struct {
	Block        *types.Block
	IsMyProduced bool
}

PrevoteReq consensusactor->chainactor

type ProducedBlockReq

type ProducedBlockReq struct {
	Block *types.Block
}

ProducedBlockReq produceractor->consensusactor

type PushTrxForP2PReq

type PushTrxForP2PReq struct {
	P2PTrx *types.P2PTransaction
}

PushTrxForP2PReq trx request info

type PushTrxReq

type PushTrxReq struct {
	Trx *types.Transaction
}

PushTrxReq trx request info

type QueryAccountReq

type QueryAccountReq struct {
	AccountName string
}

QueryAccountReq the key of account query

type QueryAccountResp

type QueryAccountResp struct {
	AccountName   string
	Balance       uint64
	StakedBalance uint64
	Error         error
}

QueryAccountResp the response of account query

type QueryBlockReq

type QueryBlockReq struct {
	BlockHash   common.Hash
	BlockNumber uint64
}

QueryBlockReq the key of block query

type QueryBlockResp

type QueryBlockResp struct {
	Block *types.Block
	Error error
}

QueryBlockResp the response of block query

type QueryBlockTrxResp

type QueryBlockTrxResp struct {
	Trx   *types.BlockTransaction
	Error error
}

QueryBlockTrxResp the response of trx query

type QueryChainInfoReq

type QueryChainInfoReq struct {
}

QueryChainInfoReq the key of chain info query

type QueryChainInfoResp

type QueryChainInfoResp struct {
	HeadBlockVersion      uint32
	HeadBlockNum          uint64
	LastConsensusBlockNum uint64
	HeadBlockHash         common.Hash
	HeadBlockTime         uint64
	HeadBlockDelegate     string
	Error                 error
}

QueryChainInfoResp the response of chain info query

type QueryTrxReq

type QueryTrxReq struct {
	TrxHash common.Hash
}

QueryTrxReq the key of trx query

type QueryTrxResp

type QueryTrxResp struct {
	Trx   *types.Transaction
	Error error
}

QueryTrxResp the response of trx query

type RcvCommitReq

type RcvCommitReq struct {
	BftHeaderState *types.ConsensusHeaderState
}

RcvPrecommitReq p2pactor->consensusactor

type RcvPrecommitReq

type RcvPrecommitReq struct {
	BlockState *types.ConsensusBlockState
}

RcvPrecommitReq p2pactor->consensusactor

type RcvPrevoteReq

type RcvPrevoteReq struct {
	BlockState *types.ConsensusBlockState
}

RcvPrevoteReq p2pactor->consensusactor

type ReceiveBlock

type ReceiveBlock struct {
	Block *types.Block
}

ReceiveBlock p2pactor->chainactor

type ReceiveBlockResp

type ReceiveBlockResp struct {
	BlockNum uint64
	ErrorNo  berr.ErrCode
}

ReceiveBlockResp chainactor->p2pactor

type ReceiveTrx

type ReceiveTrx struct {
	P2PTrx *types.P2PTransaction
}

ReceiveTrx p2pactor->trxpool

type RemovePendingBlockTrxsReq

type RemovePendingBlockTrxsReq struct {
	Trxs []*types.BlockTransaction
}

RemovePendingTrxsReq the key of remove trx

type RemovePendingTrxsReq

type RemovePendingTrxsReq struct {
	Trxs []*types.Transaction
}

type SendCommit

type SendCommit struct {
	BftHeaderState *types.ConsensusHeaderState
}

SendCommit consensusactor->p2pactor

type SendPrecommit

type SendPrecommit struct {
	BlockState *types.ConsensusBlockState
}

SendPrecommit consensusactor->p2pactor

type SendPrevote

type SendPrevote struct {
	BlockState *types.ConsensusBlockState
}

SendPrevote consensusactor->p2pactor

type SyncCommitReq

type SyncCommitReq struct {
	BftHeaderState *types.ConsensusHeaderState
}

SyncCommitReq consensusactor->chainactor

Jump to

Keyboard shortcuts

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