txcache

package
v1.11.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: GPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountState added in v1.8.6

type AccountState = types.AccountState

AccountState represents the state of an account (as seen by the mempool)

type ConfigDestinationMe

type ConfigDestinationMe = txcache.ConfigDestinationMe

ConfigDestinationMe holds cache configuration

type ConfigSourceMe

type ConfigSourceMe = txcache.ConfigSourceMe

ConfigSourceMe holds cache configuration

type CrossTxCache

type CrossTxCache = txcache.CrossTxCache

CrossTxCache holds cross-shard transactions (where destination == me)

func NewCrossTxCache

func NewCrossTxCache(config ConfigDestinationMe) (*CrossTxCache, error)

NewCrossTxCache creates a new transactions cache

type DisabledCache

type DisabledCache = txcache.DisabledCache

DisabledCache represents a disabled cache

func NewDisabledCache

func NewDisabledCache() *DisabledCache

NewDisabledCache creates a new disabled cache

type ForEachTransaction

type ForEachTransaction = txcache.ForEachTransaction

ForEachTransaction is an iterator callback

type MempoolHost added in v1.8.6

type MempoolHost = txcache.MempoolHost

MempoolHost provides blockchain information for mempool operations

type SelectionSession added in v1.8.6

type SelectionSession = txcache.SelectionSession

SelectionSession provides blockchain information for transaction selection

type TxCache

type TxCache = txcache.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, host MempoolHost) (*TxCache, error)

NewTxCache creates a new transaction cache

type WrappedTransaction

type WrappedTransaction = txcache.WrappedTransaction

WrappedTransaction contains a transaction, its hash and extra information

Jump to

Keyboard shortcuts

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