Documentation ¶
Index ¶
- Constants
- Variables
- func App() *node.Plugin
- func AwaitTransactionToBeBooked(f func() (*tangle.Message, error), txID transaction.ID, maxAwait time.Duration) (*tangle.Message, error)
- func FCOB() *consensus.FCOB
- func LedgerState() *valuetangle.LedgerState
- func Tangle() *valuetangle.Tangle
- func TipManager() *tipmanager.TipManager
- func ValueObjectFactory() *valuetangle.ValueObjectFactory
Constants ¶
View Source
const ( // PluginName contains the human readable name of the plugin. PluginName = "ValueTransfers" // DefaultAverageNetworkDelay contains the default average time it takes for a network to propagate through gossip. DefaultAverageNetworkDelay = 5 * time.Second // CfgValueLayerSnapshotFile is the path to the snapshot file. CfgValueLayerSnapshotFile = "valueLayer.snapshot.file" // CfgValueLayerFCOBAverageNetworkDelay is the avg. network delay to use for FCoB rules CfgValueLayerFCOBAverageNetworkDelay = "valueLayer.fcob.averageNetworkDelay" )
Variables ¶
View Source
var ( // ErrTransactionWasNotBookedInTime is returned if a transaction did not get booked // within the defined await time. ErrTransactionWasNotBookedInTime = errors.New("transaction could not be booked in time") )
Functions ¶
func AwaitTransactionToBeBooked ¶ added in v0.2.1
func AwaitTransactionToBeBooked(f func() (*tangle.Message, error), txID transaction.ID, maxAwait time.Duration) (*tangle.Message, error)
AwaitTransactionToBeBooked awaits maxAwait for the given transaction to get booked.
func LedgerState ¶
func LedgerState() *valuetangle.LedgerState
LedgerState gets the ledgerState instance. ledgerState represents the ledger state, that keeps track of the liked branches and offers an API to access funds.
func Tangle ¶
func Tangle() *valuetangle.Tangle
Tangle gets the tangle instance. tangle represents the value tangle that is used to express votes on value transactions.
func TipManager ¶
func TipManager() *tipmanager.TipManager
TipManager returns the TipManager singleton.
func ValueObjectFactory ¶
func ValueObjectFactory() *valuetangle.ValueObjectFactory
ValueObjectFactory returns the ValueObjectFactory singleton.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.