submitter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: ISC Imports: 10 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.Client, babylonClient *babylonclient.Client) (*Submitter, error)

func (*Submitter) GetBabylonClient

func (s *Submitter) GetBabylonClient() (*babylonclient.Client, error)

func (*Submitter) MustGetBabylonClient

func (s *Submitter) MustGetBabylonClient() *babylonclient.Client

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