tx

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2018 License: Unlicense, Unlicense Imports: 2 Imported by: 0

Documentation

Overview

A library for working with transactions on the DUO blockchain

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coins

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

type In

type In struct {
	PrevOut   OutPoint
	ScriptSig Script
	Sequence  uint
}

type InPoint

type InPoint struct {
	Tx *Transaction
	N  uint
}

type InUndo

type InUndo struct {
}

type MemPool

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

MemPool stores the list of transactions received from the P2P network

type Orphan

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

type Out

type Out struct {
	Value        int64
	ScriptPubKey Script
}

type OutCompressor

type OutCompressor struct {
	Out *Out
}

OutCompressor controls optimising a transaction

type OutPoint

type OutPoint struct {
	Hash Uint.U256
	N    uint
}

type Script

type Script struct{}

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
}

Jump to

Keyboard shortcuts

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