Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsensusServices ¶
type ConsensusServices struct {
Proposer proposer.Proposer[starknet.Value, starknet.Hash]
P2P p2p.P2P[starknet.Value, starknet.Hash, starknet.Address]
Driver *driver.Driver[starknet.Value, starknet.Hash, starknet.Address]
CommitListener driver.CommitListener[starknet.Value, starknet.Hash]
}
func Init ¶
func Init( host host.Host, logger *utils.ZapLogger, database db.KeyValueStore, blockchain *blockchain.Blockchain, vm vm.VM, nodeAddress *starknet.Address, validators votecounter.Validators[starknet.Address], timeoutFn driver.TimeoutFn, bootstrapPeersFn func() []peer.AddrInfo, ) (ConsensusServices, error)
type MockServices ¶
type MockServices struct {
PrivateKey crypto.PrivKey
NodeAddress starknet.Address
Validators votecounter.Validators[starknet.Address]
TimeoutFn driver.TimeoutFn
}
func InitMockServices ¶
func InitMockServices(hiSeed, loSeed uint64, nodeIndex, nodeCount int) MockServices
Click to show internal directories.
Click to hide internal directories.