Documentation
¶
Index ¶
- type CommitReq
- type GetAllPendingTrxReq
- type GetAllPendingTrxRsp
- type InsertBlockReq
- type InsertBlockRsp
- type NotifyBlock
- type NotifyTrx
- type PrecommitReq
- type PrecommitResp
- type PrevoteReq
- type ProducedBlockReq
- type PushTrxForP2PReq
- type PushTrxReq
- type QueryAccountReq
- type QueryAccountResp
- type QueryBlockReq
- type QueryBlockResp
- type QueryBlockTrxResp
- type QueryChainInfoReq
- type QueryChainInfoResp
- type QueryTrxReq
- type QueryTrxResp
- type RcvCommitReq
- type RcvPrecommitReq
- type RcvPrevoteReq
- type ReceiveBlock
- type ReceiveBlockResp
- type ReceiveTrx
- type RemovePendingBlockTrxsReq
- type RemovePendingTrxsReq
- type SendCommit
- type SendPrecommit
- type SendPrevote
- type SyncCommitReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 InsertBlockRsp ¶
InsertBlockRsp the response of insert block
type PrecommitReq ¶
PrecommitReq consensusactor->chainactor
type PrecommitResp ¶
PrecommitReq chainactor->p2pactor
type PrevoteReq ¶
PrevoteReq consensusactor->chainactor
type ProducedBlockReq ¶
ProducedBlockReq produceractor->consensusactor
type PushTrxForP2PReq ¶
type PushTrxForP2PReq struct {
P2PTrx *types.P2PTransaction
}
PushTrxForP2PReq trx request info
type QueryAccountReq ¶
type QueryAccountReq struct {
AccountName string
}
QueryAccountReq the key of account query
type QueryAccountResp ¶
QueryAccountResp the response of account query
type QueryBlockReq ¶
QueryBlockReq the key of block query
type QueryBlockResp ¶
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 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 ¶
ReceiveBlock p2pactor->chainactor
type ReceiveBlockResp ¶
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