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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtcLatestTransactionsIndex

type BtcLatestTransactionsIndex struct {
	LatestTransactionsIndex
}

func (BtcLatestTransactionsIndex) ConnectBlock

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

func (BtcLatestTransactionsIndex) DisconnectBlock

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

func (BtcLatestTransactionsIndex) FetchNextBlockFromNode

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

func (BtcLatestTransactionsIndex) InitRPCClient

type JaxLatestTransactionsIndex

type JaxLatestTransactionsIndex struct {
	LatestTransactionsIndex
}

func (JaxLatestTransactionsIndex) ConnectBlock

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

func (JaxLatestTransactionsIndex) DisconnectBlock

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

func (JaxLatestTransactionsIndex) FetchNextBlockFromNode

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

func (JaxLatestTransactionsIndex) InitRPCClient

type LatestTransactionsIndex

type LatestTransactionsIndex struct{}

func (LatestTransactionsIndex) DefaultFirstBlockForProcessing

func (i LatestTransactionsIndex) DefaultFirstBlockForProcessing() (blockNumber int64)

func (LatestTransactionsIndex) PrepareDatabase

func (i LatestTransactionsIndex) PrepareDatabase() error

func (LatestTransactionsIndex) SetHttpHandlers

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

Jump to

Keyboard shortcuts

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