saver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Verbose    bool
	P2shCount  int64
	P2pkhCount int64
	SkipP2pkh  bool
}

func NewAddress

func NewAddress(verbose bool) *Address

func (*Address) SaveTxs

func (a *Address) SaveTxs(ctx context.Context, b *dbi.Block) error

type Block

type Block struct {
	Verbose         bool
	BlockHash       chainhash.Hash
	PrevBlockHash   chainhash.Hash
	PrevBlockHeight int64
	NewHeight       int64
}

func NewBlock

func NewBlock(verbose bool) *Block

func (*Block) GetBlock

func (b *Block) GetBlock(heightBack int64) (*chainhash.Hash, error)

func (*Block) SaveBlock

func (b *Block) SaveBlock(info dbi.BlockInfo) error

type CombinedTx

type CombinedTx struct {
	Savers    []dbi.TxSave
	SaveTimes map[string]time.Duration
}

func NewCombined

func NewCombined(savers []dbi.TxSave) *CombinedTx

func NewCombinedTx

func NewCombinedTx(verbose bool) *CombinedTx

func (*CombinedTx) SaveTxs

func (c *CombinedTx) SaveTxs(ctx context.Context, block *dbi.Block) error

type OpReturn

type OpReturn struct {
	Verbose bool
}

func NewOpReturn

func NewOpReturn(verbose bool) *OpReturn

func (*OpReturn) SaveTxs

func (r *OpReturn) SaveTxs(ctx context.Context, b *dbi.Block) error

type TxMinimal

type TxMinimal struct {
	Verbose bool
}

func NewTxMinimal

func NewTxMinimal(verbose bool) *TxMinimal

func (*TxMinimal) QueueTxs

func (t *TxMinimal) QueueTxs(block *dbi.Block) error

func (*TxMinimal) SaveTxs

func (t *TxMinimal) SaveTxs(ctx context.Context, block *dbi.Block) error

type TxProcessed

type TxProcessed struct {
	Verbose bool
}

func NewTxProcessed

func NewTxProcessed(verbose bool) *TxProcessed

func (*TxProcessed) QueueTxs

func (t *TxProcessed) QueueTxs(block *dbi.Block) error

func (*TxProcessed) SaveTxs

func (t *TxProcessed) SaveTxs(ctx context.Context, block *dbi.Block) error

Jump to

Keyboard shortcuts

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