ika2btc

package
v0.0.0-...-7c6c014 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	BtcClient bitcoin.Client
	// contains filtered or unexported fields
}

Processor handles processing transactions from IKA to Bitcoin.

func NewProcessor

func NewProcessor(
	btcClientConfig rpcclient.ConnConfig,
	confirmationThreshold uint8,
	db *dal.DB,
) (*Processor, error)

NewProcessor creates a new Processor instance.

func (*Processor) CheckConfirmations

func (p *Processor) CheckConfirmations() error

CheckConfirmations checks all the broadcasted transactions to bitcoin and if confirmed updates the database accordingly.

func (*Processor) Run

func (p *Processor) Run() error

Run starts a loop to query and process signed transactions from the database.

func (*Processor) Shutdown

func (p *Processor) Shutdown()

Shutdown shuts down the Bitcoin RPC client.

Jump to

Keyboard shortcuts

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