Documentation ¶
Index ¶
- Variables
- func CheckDBList(names []string) error
- func DBProducer(chaindataDir string, scale cachescale.Func) kvdb.IterableDBProducer
- func MakeEngine(rawProducer kvdb.IterableDBProducer, genesis InputGenesis, cfg Configs) (*abft.ZilionBFT, *vecmt.Index, *gossip.Store, *abft.Store, *genesisstore.Store, ...)
- func NewIntegration(ctx *adapters.ServiceContext, genesis InputGenesis, stack *node.Node) *gossip.Service
- func SetAccountKey(am *accounts.Manager, key *ecdsa.PrivateKey, pswd string) (acc accounts.Account)
- type Configs
- type DummyFlushableProducer
- type GenesisMismatchError
- type GossipStoreAdapter
- type InputGenesis
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FlushIDKey = hexutils.HexToBytes("0068c2927bf842c3e9e2f1364494a33a752db334b9a819534bc9f17d2c3b4e5970008ff519d35a86f29fcaa5aae706b75dee871f65f174fcea1747f2915fc92158f6bfbf5eb79f65d16225738594bffb0c")
)
Functions ¶
func CheckDBList ¶
func DBProducer ¶
func DBProducer(chaindataDir string, scale cachescale.Func) kvdb.IterableDBProducer
func MakeEngine ¶
func MakeEngine(rawProducer kvdb.IterableDBProducer, genesis InputGenesis, cfg Configs) (*abft.ZilionBFT, *vecmt.Index, *gossip.Store, *abft.Store, *genesisstore.Store, gossip.BlockProc)
MakeEngine makes consensus engine from config.
func NewIntegration ¶
func NewIntegration(ctx *adapters.ServiceContext, genesis InputGenesis, stack *node.Node) *gossip.Service
NewIntegration creates gossip service for the integration test
func SetAccountKey ¶
func SetAccountKey( am *accounts.Manager, key *ecdsa.PrivateKey, pswd string, ) ( acc accounts.Account, )
SetAccountKey sets key into accounts manager and unlocks it with pswd.
Types ¶
type Configs ¶
type Configs struct { Zilionixx gossip.Config ZilionixxStore gossip.StoreConfig ZilionBFT abft.Config ZilionBFTStore abft.StoreConfig VectorClock vecmt.IndexConfig AllowedGenesis map[uint64]hash.Hash }
type DummyFlushableProducer ¶
type DummyFlushableProducer struct {
kvdb.DBProducer
}
func (*DummyFlushableProducer) Flush ¶
func (p *DummyFlushableProducer) Flush(_ []byte) error
func (*DummyFlushableProducer) NotFlushedSizeEst ¶
func (p *DummyFlushableProducer) NotFlushedSizeEst() int
type GenesisMismatchError ¶
GenesisMismatchError is raised when trying to overwrite an existing genesis block with an incompatible one.
func (*GenesisMismatchError) Error ¶
func (e *GenesisMismatchError) Error() string
Error implements error interface.
type GossipStoreAdapter ¶
type InputGenesis ¶
Click to show internal directories.
Click to hide internal directories.