leveldb

package
v0.0.0-...-4993a4a Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDBDatabase

type LevelDBDatabase struct {
	// contains filtered or unexported fields
}

func (*LevelDBDatabase) Close

func (lvldb *LevelDBDatabase) Close() error

func (*LevelDBDatabase) GetAllTxOutputs

func (lvldb *LevelDBDatabase) GetAllTxOutputs(address string, onlyNotUsed bool) ([]*core.TxInputOutput, error)

func (*LevelDBDatabase) GetConfirmedBlocksFrom

func (lvldb *LevelDBDatabase) GetConfirmedBlocksFrom(slotNumber uint64, maxCnt int) ([]*core.CardanoBlock, error)

func (*LevelDBDatabase) GetLatestBlockPoint

func (lvldb *LevelDBDatabase) GetLatestBlockPoint() (*core.BlockPoint, error)

func (*LevelDBDatabase) GetLatestConfirmedBlocks

func (lvldb *LevelDBDatabase) GetLatestConfirmedBlocks(maxCnt int) ([]*core.CardanoBlock, error)

func (*LevelDBDatabase) GetTxOutput

func (lvldb *LevelDBDatabase) GetTxOutput(txInput core.TxInput) (result core.TxOutput, err error)

func (*LevelDBDatabase) GetUnprocessedConfirmedTxs

func (lvldb *LevelDBDatabase) GetUnprocessedConfirmedTxs(maxCnt int) ([]*core.Tx, error)

func (*LevelDBDatabase) Init

func (lvldb *LevelDBDatabase) Init(filePath string) error

func (*LevelDBDatabase) MarkConfirmedTxsProcessed

func (lvldb *LevelDBDatabase) MarkConfirmedTxsProcessed(txs []*core.Tx) error

func (*LevelDBDatabase) OpenTx

func (lvldb *LevelDBDatabase) OpenTx() core.DBTransactionWriter

type LevelDBTransactionWriter

type LevelDBTransactionWriter struct {
	// contains filtered or unexported fields
}

func NewLevelDBTransactionWriter

func NewLevelDBTransactionWriter(db *leveldb.DB) *LevelDBTransactionWriter

func (*LevelDBTransactionWriter) AddConfirmedBlock

func (tw *LevelDBTransactionWriter) AddConfirmedBlock(block *core.CardanoBlock) core.DBTransactionWriter

func (*LevelDBTransactionWriter) AddConfirmedTxs

func (tw *LevelDBTransactionWriter) AddConfirmedTxs(txs []*core.Tx) core.DBTransactionWriter

func (*LevelDBTransactionWriter) AddTxOutputs

func (tw *LevelDBTransactionWriter) AddTxOutputs(txOutputs []*core.TxInputOutput) core.DBTransactionWriter

func (*LevelDBTransactionWriter) DeleteAllTxOutputsPhysically

func (tw *LevelDBTransactionWriter) DeleteAllTxOutputsPhysically() core.DBTransactionWriter

func (*LevelDBTransactionWriter) Execute

func (tw *LevelDBTransactionWriter) Execute() error

func (*LevelDBTransactionWriter) RemoveTxOutputs

func (tw *LevelDBTransactionWriter) RemoveTxOutputs(
	txInputs []*core.TxInput, softDelete bool,
) core.DBTransactionWriter

func (*LevelDBTransactionWriter) SetLatestBlockPoint

func (tw *LevelDBTransactionWriter) SetLatestBlockPoint(point *core.BlockPoint) core.DBTransactionWriter

Jump to

Keyboard shortcuts

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