Documentation ¶
Overview ¶
Package consensus implements different PalletOne consensus engines.
Index ¶
- type AdapterJury
- func (a *AdapterJury) AdapterFunRequest(reqId common.Hash, contractId common.Address, msgType uint32, ...) ([]byte, error)
- func (a *AdapterJury) AdapterFunResult(reqId common.Hash, contractId common.Address, msgType uint32, ...) ([]byte, error)
- func (a *AdapterJury) GetLocalJuryAddrs() []common.Address
- type ContractInf
- type DPOSEngine
- type Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterJury ¶
func (*AdapterJury) AdapterFunRequest ¶
func (*AdapterJury) AdapterFunResult ¶
func (*AdapterJury) GetLocalJuryAddrs ¶ added in v1.0.3
func (a *AdapterJury) GetLocalJuryAddrs() []common.Address
type ContractInf ¶
type ContractInf interface { SubscribeContractEvent(ch chan<- jury.ContractEvent) event.Subscription ProcessUserContractInvokeReqTx(tx *modules.Transaction) ProcessContractEvent(event *jury.ContractEvent) (broadcast bool, err error) ProcessElectionEvent(event *jury.ElectionEvent) (err error) ProcessAdapterEvent(event *jury.AdapterEvent) (result *jury.AdapterEvent, err error) CheckContractTxValid(rwM rwset.TxManager, tx *modules.Transaction, execute bool) bool AddLocalTx(tx *modules.Transaction) error }
type DPOSEngine ¶
type DPOSEngine struct {
// contains filtered or unexported fields
}
func (*DPOSEngine) Engine ¶
func (engine *DPOSEngine) Engine() int
func (*DPOSEngine) SendEvents ¶
func (engine *DPOSEngine) SendEvents(content []byte)
func (*DPOSEngine) Stop ¶
func (engine *DPOSEngine) Stop()
func (*DPOSEngine) SubscribeCeEvent ¶
func (engine *DPOSEngine) SubscribeCeEvent(ch chan<- core.ConsensusEvent) event.Subscription
Directories ¶
Path | Synopsis |
---|---|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018
|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 |
vrf
* @author PalletOne core developers <dev@pallet.one> * @date 2018
|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 |
vrf/algorithm
* @author PalletOne core developers <dev@pallet.one> * @date 2018
|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 |
vrf/inf
* @author PalletOne core developers <dev@pallet.one> * @date 2018
|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 |
vrf/vrfEc
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018
|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 |
vrf/vrfEs
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018
|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 |
vrf/vrfEss
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018
|
* @author PalletOne core developers <dev@pallet.one> * @date 2018 * @author PalletOne core developers <dev@pallet.one> * @date 2018 |
Click to show internal directories.
Click to hide internal directories.