Documentation
¶
Index ¶
- type SuperblockPublisher
- func (sp *SuperblockPublisher) GetStats() map[string]interface{}
- func (sp *SuperblockPublisher) Start(ctx context.Context) error
- func (sp *SuperblockPublisher) Stop(ctx context.Context) error
- func (sp *SuperblockPublisher) SubmitXTRequest(ctx context.Context, from string, request *pb.XTRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SuperblockPublisher ¶
SuperblockPublisher wraps the base publisher with SBCP capabilities
func WrapPublisher ¶
func WrapPublisher( pub publisher.Publisher, config superblock.Config, log zerolog.Logger, consensusCoord consensus.Coordinator, transport transport.Server, collector collector.Service, prover proofs.ProverClient, regSvc sreg.Service, ) (*SuperblockPublisher, error)
WrapPublisher creates a new SuperblockPublisher by wrapping an existing publisher
func (*SuperblockPublisher) GetStats ¶
func (sp *SuperblockPublisher) GetStats() map[string]interface{}
GetStats combines stats from both components
func (*SuperblockPublisher) Start ¶
func (sp *SuperblockPublisher) Start(ctx context.Context) error
Start starts both the base publisher and superblock coordinator
func (*SuperblockPublisher) Stop ¶
func (sp *SuperblockPublisher) Stop(ctx context.Context) error
Stop stops both components
func (*SuperblockPublisher) SubmitXTRequest ¶
func (sp *SuperblockPublisher) SubmitXTRequest(ctx context.Context, from string, request *pb.XTRequest) error
SubmitXTRequest queues a cross-chain transaction request
Click to show internal directories.
Click to hide internal directories.