transactions

package
v0.0.0-...-820de1c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 5 Imported by: 4

Documentation

Overview

Package transactions contains the "Transaction" struct and the Transaction Pool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinTransactionsToString

func JoinTransactionsToString(txs []t.Transaction) string

JoinTransactionsToString takes a slice of transactions and returns it as a single string.

func New

func New(from t.Address, to t.Address, amount uint64, signer t.Signer) (t.Transaction, error)

New creates a "Transaction" with the given data.

func PopValidTransactions

func PopValidTransactions() []t.Transaction

PopValidTransactions returns all transactions within the pool that are valid and therefore ready to be added to a Block.

func UpdateOrAdd

func UpdateOrAdd(transaction t.Transaction)

UpdateOrAdd takes a Transaction and adds it to the pool. If a Transaction with the same ID is already there, it will be replaced.

Types

This section is empty.

Jump to

Keyboard shortcuts

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