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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtcTransactionsIndex

type BtcTransactionsIndex struct {
	TransactionsIndex
}

func (BtcTransactionsIndex) ConnectBlock

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

func (BtcTransactionsIndex) DisconnectBlock

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

func (BtcTransactionsIndex) FetchNextBlockFromNode

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

func (BtcTransactionsIndex) InitRPCClient

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

type JaxTransactionsIndex

type JaxTransactionsIndex struct {
	TransactionsIndex
}

func (JaxTransactionsIndex) ConnectBlock

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

func (JaxTransactionsIndex) DisconnectBlock

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

func (JaxTransactionsIndex) FetchNextBlockFromNode

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

func (JaxTransactionsIndex) InitRPCClient

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

type TransactionsIndex

type TransactionsIndex struct{}

func (TransactionsIndex) DefaultFirstBlockForProcessing

func (i TransactionsIndex) DefaultFirstBlockForProcessing() (blockNumber int64)

func (TransactionsIndex) PrepareDatabase

func (i TransactionsIndex) PrepareDatabase() error

func (TransactionsIndex) SetHttpHandlers

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

Jump to

Keyboard shortcuts

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