Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseInstance = func() *specqbft.Instance { return baseInstance(TestingShare(testingutils.Testing4SharesSet()), testingutils.Testing4SharesSet(), []byte{1, 2, 3, 4}) }
View Source
var SevenOperatorsInstance = func() *specqbft.Instance { return baseInstance(TestingShare(testingutils.Testing7SharesSet()), testingutils.Testing7SharesSet(), []byte{1, 2, 3, 4}) }
View Source
var TenOperatorsInstance = func() *specqbft.Instance { return baseInstance(TestingShare(testingutils.Testing10SharesSet()), testingutils.Testing10SharesSet(), []byte{1, 2, 3, 4}) }
View Source
var TestingConfig = func(logger *zap.Logger, keySet *testingutils.TestKeySet, role types.BeaconRole) *qbft.Config { return &qbft.Config{ Signer: testingutils.NewTestingKeyManager(), SigningPK: keySet.Shares[1].GetPublicKey().Serialize(), Domain: testingutils.TestingSSVDomainType, ValueCheckF: func(data []byte) error { if bytes.Equal(data, TestingInvalidValueCheck) { return errors.New("invalid value") } if len(data) == 0 { return errors.New("invalid value") } return nil }, ProposerF: func(state *specqbft.State, round specqbft.Round) types.OperatorID { return 1 }, Storage: TestingStores(logger).Get(role), Network: testingutils.NewTestingNetwork(), Timer: roundtimer.NewTestingTimer(), SignatureVerification: true, } }
View Source
var TestingInvalidValueCheck = []byte{1, 1, 1, 1}
View Source
types.Share{ OperatorID: 1, ValidatorPubKey: keysSet.ValidatorPK.Serialize(), SharePubKey: keysSet.Shares[1].GetPublicKey().Serialize(), DomainType: testingutils.TestingSSVDomainType, Quorum: keysSet.Threshold, PartialQuorum: keysSet.PartialThreshold, Committee: keysSet.Committee(), } }return &
View Source
var ThirteenOperatorsInstance = func() *specqbft.Instance { return baseInstance(TestingShare(testingutils.Testing13SharesSet()), testingutils.Testing13SharesSet(), []byte{1, 2, 3, 4}) }
Functions ¶
func NewTestingQBFTController ¶
func NewTestingQBFTController( identifier []byte, share *types.Share, config qbft.IConfig, fullNode bool, ) *controller.Controller
func TestingStores ¶
func TestingStores(logger *zap.Logger) *qbftstorage.QBFTStores
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.