submitter

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

submitter

This package implements the vigilant submitter. The code is adapted from https://github.com/btcsuite/btcwallet/tree/master/wallet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Submitter

type Submitter struct {
	Cfg *config.SubmitterConfig
	// contains filtered or unexported fields
}

func New

func New(
	cfg *config.SubmitterConfig,
	btcWallet btcclient.BTCWallet,
	queryClient query.BabylonQueryClient,
	submitterAddr sdk.AccAddress,
	retrySleepTime, maxRetrySleepTime time.Duration,
	metrics *metrics.SubmitterMetrics) (*Submitter, error)

func (*Submitter) ShuttingDown

func (s *Submitter) ShuttingDown() bool

ShuttingDown returns whether the vigilante is currently in the process of shutting down or not.

func (*Submitter) Start

func (s *Submitter) Start()

Start starts the goroutines necessary to manage a vigilante.

func (*Submitter) Stop

func (s *Submitter) Stop()

Stop signals all vigilante goroutines to shutdown.

func (*Submitter) WaitForShutdown

func (s *Submitter) WaitForShutdown()

WaitForShutdown blocks until all vigilante goroutines have finished executing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL