Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigDestinationMe ¶ added in v1.0.123
type ConfigDestinationMe = txcache.ConfigDestinationMe
ConfigDestinationMe holds cache configuration
type ConfigSourceMe ¶ added in v1.0.123
type ConfigSourceMe = txcache.ConfigSourceMe
ConfigSourceMe holds cache configuration
type CrossTxCache ¶ added in v1.0.123
type CrossTxCache = txcache.CrossTxCache
CrossTxCache holds cross-shard transactions (where destination == me)
func NewCrossTxCache ¶ added in v1.0.123
func NewCrossTxCache(config ConfigDestinationMe) (*CrossTxCache, error)
NewCrossTxCache creates a new transactions cache
type DisabledCache ¶ added in v1.0.116
type DisabledCache = txcache.DisabledCache
DisabledCache represents a disabled cache
func NewDisabledCache ¶ added in v1.0.116
func NewDisabledCache() *DisabledCache
NewDisabledCache creates a new disabled cache
type ForEachTransaction ¶
type ForEachTransaction = txcache.ForEachTransaction
ForEachTransaction is an iterator callback
type TxCache ¶
TxCache represents a cache-like structure (it has a fixed capacity and implements an eviction mechanism) for holding transactions
func NewTxCache ¶
func NewTxCache(config ConfigSourceMe, txGasHandler TxGasHandler) (*TxCache, error)
NewTxCache creates a new transaction cache
type TxGasHandler ¶ added in v1.1.15
type TxGasHandler = txcache.TxGasHandler
TxGasHandler handles a transaction gas and gas cost
type WrappedTransaction ¶
type WrappedTransaction = txcache.WrappedTransaction
WrappedTransaction contains a transaction, its hash and extra information