bundleprocessor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0, BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProcessBundleFailed = errors.New("failed to process bundle")
)
View Source
var Events = pluginEvents{
	Error:         events.NewEvent(errorCaller),
	BundleSolid:   events.NewEvent(bundleEventCaller),
	InvalidBundle: events.NewEvent(bundleEventCaller),
}
View Source
var PLUGIN = node.NewPlugin("Bundle Processor", node.Enabled, configure, run)
View Source
var WORKER_COUNT = runtime.NumCPU()

Functions

func CalculateBundleHash

func CalculateBundleHash(transactions []*value_transaction.ValueTransaction) trinary.Trytes

func ProcessSolidBundleHead

func ProcessSolidBundleHead(headTransaction *value_transaction.ValueTransaction) error

func ProcessSolidValueBundle

func ProcessSolidValueBundle(bundle *bundle.Bundle, bundleTransactions []*value_transaction.ValueTransaction) error

func ValidateSignatures

func ValidateSignatures(bundleHash trinary.Hash, txs []*value_transaction.ValueTransaction) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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