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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtcTXsHistoryIndex

type BtcTXsHistoryIndex struct {
	TXsHistoryIndex
}

func (BtcTXsHistoryIndex) ConnectBlock

func (i BtcTXsHistoryIndex) ConnectBlock(_ pgx.Tx, block *core.AbstractMsgBlock, _ int64, rpcClient *core.AbstractRPCClient) (err error)

WARN: This code is duplicated into jax_implementation! In case of any change - please sync both implemenatations.

func (BtcTXsHistoryIndex) DisconnectBlock

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

WARN: This code is duplicated into jax_implementation! In case of any change - please sync both implemenatations.

func (BtcTXsHistoryIndex) FetchNextBlockFromNode

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

func (BtcTXsHistoryIndex) InitRPCClient

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

type JaxTXsHistoryIndex

type JaxTXsHistoryIndex struct {
	TXsHistoryIndex
}

func (JaxTXsHistoryIndex) ConnectBlock

func (i JaxTXsHistoryIndex) ConnectBlock(_ pgx.Tx, block *core.AbstractMsgBlock, _ int64, rpcClient *core.AbstractRPCClient) (err error)

WARN: This code is duplicated into btc_implementation! In case of any change - please sync both implemenatations.

func (JaxTXsHistoryIndex) DisconnectBlock

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

WARN: This code is duplicated into btc_implementation! In case of any change - please sync both implemenatations.

func (JaxTXsHistoryIndex) FetchNextBlockFromNode

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

func (JaxTXsHistoryIndex) InitRPCClient

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

type TXsHistoryIndex

type TXsHistoryIndex struct{}

func (TXsHistoryIndex) DefaultFirstBlockForProcessing

func (i TXsHistoryIndex) DefaultFirstBlockForProcessing() (blockNumber int64)

func (TXsHistoryIndex) PrepareDatabase

func (i TXsHistoryIndex) PrepareDatabase() error

func (TXsHistoryIndex) SetHttpHandlers

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

Jump to

Keyboard shortcuts

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