store

package
v0.0.0-...-45ced9e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	TxStoreDir     string
	PrepareTxCache types.Transactions
}

func NewStore

func NewStore(txStoreDir string) *Store

func (*Store) AddPrepareTx

func (s *Store) AddPrepareTx(tx *types.Transaction)

func (*Store) LoadPrepareTxs

func (s *Store) LoadPrepareTxs() (types.Transactions, error)

func (*Store) LoadTxsMap

func (s *Store) LoadTxsMap() (map[int]types.Transactions, error)

func (*Store) PersistPrepareTxs

func (s *Store) PersistPrepareTxs() error

func (*Store) PersistTxsMap

func (s *Store) PersistTxsMap(txsMap map[int]types.Transactions) error

Jump to

Keyboard shortcuts

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