efleg

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package efleg hands a settlement leg every transaction with its inputs' source transactions attached. A leg that takes Extended Format (BRC-30), arcade and a fabric ingress, needs each input's source; a transaction rebuilt from its recorded bytes (a token, a hold transaction or a settlement sent again, an advertisement resent after a restart) has none, and such a leg refuses it (arcade: 460, not extended format). Each missing source is read from the chain view (a node, or WhatsOnChain) by its txid and held to it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hydrate

Hydrate is tx, or a shallow copy of it with the missing input sources read from src. tx itself is never changed.

func Wrap

Wrap is s with sources read from src; s itself when either is nil.

Types

type Settler

type Settler struct {
	publish.Settler
	Source nodeapi.TxSource
}

Settler is a leg whose transactions get their inputs' sources first.

func (*Settler) Submit

func (s *Settler) Submit(ctx context.Context, tx *transaction.Transaction) error

Submit sends a copy of tx whose every input has its source transaction: the caller's own when it has one, else the chain view's, held to the txid. An input whose source the chain view does not answer is sent as it is, and the leg decides.

Jump to

Keyboard shortcuts

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