Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainInfo ¶
BlockchainInfo information of block chain
type BroadcastConsensus ¶
BroadcastConsensus Define consensus data for broadcast
type CommittedTxs ¶
type CommittedTxs struct {
Skip bool
IsLocalChain bool
SeqNo uint64
Time uint32
Transactions []*types.Transaction
}
CommittedTxs Consensus output object
type Consenter ¶
type Consenter interface {
Start()
Stop()
Quorum() int
RecvConsensus([]byte)
BroadcastConsensusChannel() <-chan *BroadcastConsensus
CommittedTxsChannel() <-chan *OutputTxs
}
Consenter Interface for plugin consenser
type IStack ¶
type IStack interface {
VerifyTxsInConsensus(txs []*types.Transaction, primary bool) bool
GetBlockchainInfo() *BlockchainInfo
ITxPool
}
IStack Interface for other function for plugin consenser
type ITxPool ¶
type ITxPool interface {
FetchGroupingTxsInTxPool(groupingNum, maxSizeInGrouping int) []types.Transactions
}
ITxPool Interface for tx containter, input
type OutputTxs ¶
type OutputTxs struct {
Outputs []*CommittedTxs
Height uint32
}
OutputTxs Consensus output object
Click to show internal directories.
Click to hide internal directories.