implementation

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtcNonSpentUTXOsIndex

type BtcNonSpentUTXOsIndex struct {
	NonSpentUTXOsIndex
}

func (BtcNonSpentUTXOsIndex) ConnectBlock

func (i BtcNonSpentUTXOsIndex) ConnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, rpcClient *core.AbstractRPCClient) error

func (BtcNonSpentUTXOsIndex) DisconnectBlock

func (i BtcNonSpentUTXOsIndex) DisconnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, rpcClient *core.AbstractRPCClient) error

func (BtcNonSpentUTXOsIndex) FetchNextBlockFromNode

func (i BtcNonSpentUTXOsIndex) FetchNextBlockFromNode(offset int64, checkPrevBlock bool,
	rpcClient *core.AbstractRPCClient, cacheHandler *blocks_cache.CacheHandler) (
	block *core.AbstractMsgBlock, prevBlockNumber, blockHeight int64, rebuildingChainBlockNumber int64, err error)

func (BtcNonSpentUTXOsIndex) InitRPCClient

func (i BtcNonSpentUTXOsIndex) InitRPCClient() (*core.AbstractRPCClient, error)

type JaxNonSpentUTXOsIndex

type JaxNonSpentUTXOsIndex struct {
	NonSpentUTXOsIndex
}

func (JaxNonSpentUTXOsIndex) ConnectBlock

func (i JaxNonSpentUTXOsIndex) ConnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, rpcClient *core.AbstractRPCClient) error

func (JaxNonSpentUTXOsIndex) DefaultFirstBlockForProcessing

func (i JaxNonSpentUTXOsIndex) DefaultFirstBlockForProcessing() (blockNumber int64)

func (JaxNonSpentUTXOsIndex) DisconnectBlock

func (i JaxNonSpentUTXOsIndex) DisconnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, rpcClient *core.AbstractRPCClient) error

func (JaxNonSpentUTXOsIndex) FetchNextBlockFromNode

func (i JaxNonSpentUTXOsIndex) FetchNextBlockFromNode(offset int64, checkPrevBlock bool,
	rpcClient *core.AbstractRPCClient, cacheHandler *blocks_cache.CacheHandler) (
	block *core.AbstractMsgBlock, prevBlockNumber, blockHeight int64, rebuildingChainBlockNumber int64, err error)

func (JaxNonSpentUTXOsIndex) InitRPCClient

func (i JaxNonSpentUTXOsIndex) InitRPCClient() (*core.AbstractRPCClient, error)

type NonSpentUTXOsIndex

type NonSpentUTXOsIndex struct{}

func (NonSpentUTXOsIndex) DefaultFirstBlockForProcessing

func (i NonSpentUTXOsIndex) DefaultFirstBlockForProcessing() (blockNumber int64)

func (NonSpentUTXOsIndex) PrepareDatabase

func (i NonSpentUTXOsIndex) PrepareDatabase() error

PrepareDatabase makes some preliminary actions with database before indexing begins. According to core development policies, UTXOs index must ignore UTXOs from genesis blocks, so blocks processing must begin from the block with the serial ID == 1.

func (NonSpentUTXOsIndex) SetHttpHandlers

func (i NonSpentUTXOsIndex) SetHttpHandlers(group *router.Group)

type UTXO

type UTXO struct {
	TxHash string
	Index  uint32
}

Jump to

Keyboard shortcuts

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