Discover Packages
github.com/celestiaorg/celestia-node
nodebuilder
fraud
package
Version:
v0.5.2-slava
Opens a new window with list of versions in this module.
Published: Oct 28, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Module
ModuleWithSyncer(lc, sub, host, hstore, ds, network)
NewModule(lc, sub, host, hstore, ds, network)
Source Files
Documentation
Documentation
¶
func ConstructModule(tp node.Type) fx.Option
func Lifecycle(startCtx, lifecycleCtx context.Context, p fraud.ProofType, fraudModule Module, ...) error
type Module
func ModuleWithSyncer(lc fx.Lifecycle, sub *pubsub.PubSub, host host.Host, hstore header.Store, ...) (Module, error)
func NewModule(lc fx.Lifecycle, sub *pubsub.PubSub, host host.Host, hstore header.Store, ...) (Module, error)
Lifecycle controls the lifecycle of service depending on fraud proofs.
It starts the service only if no fraud-proof exists and stops the service automatically
if a proof arrives after the service was started.
Module encompasses the behavior necessary to subscribe and broadcast
fraud proofs within the network.
ModuleWithSyncer constructs fraud proof service with enabled syncer.
NewModule constructs a fraud proof service with the syncer disabled.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.