tx

package
v0.0.1-0...-74edd6f Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coins

type Coins struct {
	Base    bool
	TxOut   []Out
	Height  int
	Version int
}

Coins is

type Destination

type Destination interface{}

type In

type In struct {
	PrevOut   OutPoint
	ScriptSig rec.Script
	Sequence  uint
}

In is an input

type InPoint

type InPoint struct {
	Tx *Transaction
	N  uint
}

InPoint is one element in the collection of inputs of a transaction

type InUndo

type InUndo struct {
}

InUndo is

type Items

type Items map[int64]Pair

Items are

type MemPool

type MemPool struct {
	Mutex sync.RWMutex
	Map   map[core.Hash]*Transaction
	Next  map[*OutPoint]*InPoint
}

MemPool stores the list of transactions received from the P2P network

type NoDestination

type NoDestination struct{}

type Orphan

type Orphan struct {
	Tx                 Transaction
	DependsOn          []*core.Hash
	Priority, FeePerKB float64
}

Orphan is a transaction that is not included in the current canonical chain, but older than the head

type Out

type Out struct {
	Value        int64
	ScriptPubKey rec.Script
}

Out is an output

type OutCompressor

type OutCompressor struct {
	TxOut *Out
}

OutCompressor controls optimising a transaction

type OutPoint

type OutPoint struct {
	Hash core.Hash
	N    uint
}

OutPoint is one element in the collection of outputs of a transaction

type Output

type Output struct {
	Tx       *rec.Tx
	I, Depth int
}

Output is a transaction output

type Pair

type Pair map[*Transaction]*rec.Accounting

Pair is

type Transaction

type Transaction struct {
	MinTxFee, MinRelayTxFee int64
	CurrentVersion          int
	Version                 int
	Vin                     []In
	Vout                    []Out
	LockTime                uint
}

Transaction -

type Undo

type Undo struct {
	PrevOut []InUndo
}

Undo is

Jump to

Keyboard shortcuts

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