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 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.
Click to show internal directories.
Click to hide internal directories.