Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type Broadcasters ¶
type Broadcasters[V types.Hashable[H], H types.Hash, A types.Addr] struct { ProposalBroadcaster Broadcaster[*types.Proposal[V, H, A]] PrevoteBroadcaster Broadcaster[*types.Prevote[H, A]] PrecommitBroadcaster Broadcaster[*types.Precommit[H, A]] }
type Listener ¶
type Listener[M any] interface { // Listen would return consensus messages to Tendermint which are set by the validator set. Listen() <-chan M }
type P2P ¶ added in v0.15.0
type P2P[V types.Hashable[H], H types.Hash, A types.Addr] interface { service.Service Broadcasters() Broadcasters[V, H, A] Listeners() Listeners[V, H, A] OnCommit(ctx context.Context, height types.Height, value V) }
func New ¶ added in v0.15.0
func New( host host.Host, log utils.Logger, builder *builder.Builder, proposalStore *proposal.ProposalStore[starknet.Hash], currentHeight types.Height, bufferSizeConfig *config.BufferSizes, bootstrapPeersFn func() []peer.AddrInfo, compiler compiler.Compiler, ) P2P[starknet.Value, starknet.Hash, starknet.Address]
Click to show internal directories.
Click to hide internal directories.