Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CEShardStateListener ¶
type CEShardStateListener interface {
OnShardDisabled()
}
CEShardStateListener is used to control the status of consensus.
type Consensus ¶
type Consensus interface {
// StartConsensusAtRound means set the consensus start at the round;
StartConsensusAtRound(round int)
// StopConsensusAtRound means when shard needs to be disabled, stop the consensus firstly
StopConsensusAtRound(round int)
// todo(MH): maybe remove
// UpdateInShardProof will update consensusExecutor.inshardProof, it will be safe in concurrent.
UpdateInShardProof(inShardProof []byte)
// RegisterCEListener adds a listener to shardStateListeners
RegisterCEShardStateListener(listener CEShardStateListener)
Init()
Start()
}
Consensus is the consensus engine
type DepositFetcher ¶
DepositFetcher get deposited information.
Click to show internal directories.
Click to hide internal directories.