engines

package
v0.0.0-...-beb73e8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockResult

type BlockResult struct {
	Height int32
	Error  error
}

BlockResult represents the result of processing a single block

type DeniabilityEngine

type DeniabilityEngine struct {
	// contains filtered or unexported fields
}

func (*DeniabilityEngine) Run

func (e *DeniabilityEngine) Run(ctx context.Context) error

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser is responsible for parsing blocks from bitcoind and storing OP_RETURN data in SQLite

func NewBitcoind

func NewBitcoind(
	bitcoind *service.Service[*coreproxy.Bitcoind],
	db *sql.DB,
) *Parser

func (*Parser) Run

func (p *Parser) Run(ctx context.Context) error

Run runs the engine. It checks if a new block has been mined, and if so, handles it!

Should be started in a goroutine.

type UTXO

type UTXO struct {
	TxID   string
	Vout   int32
	Amount uint64
}

Jump to

Keyboard shortcuts

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