Documentation
¶
Index ¶
- type BtcNonSpentUTXOsIndex
- func (i BtcNonSpentUTXOsIndex) ConnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, ...) error
- func (i BtcNonSpentUTXOsIndex) DisconnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, ...) error
- func (i BtcNonSpentUTXOsIndex) FetchNextBlockFromNode(offset int64, checkPrevBlock bool, rpcClient *core.AbstractRPCClient, ...) (block *core.AbstractMsgBlock, prevBlockNumber, blockHeight int64, ...)
- func (i BtcNonSpentUTXOsIndex) InitRPCClient() (*core.AbstractRPCClient, error)
- type JaxNonSpentUTXOsIndex
- func (i JaxNonSpentUTXOsIndex) ConnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, ...) error
- func (i JaxNonSpentUTXOsIndex) DefaultFirstBlockForProcessing() (blockNumber int64)
- func (i JaxNonSpentUTXOsIndex) DisconnectBlock(tx pgx.Tx, block *core.AbstractMsgBlock, blockHeight int64, ...) error
- func (i JaxNonSpentUTXOsIndex) FetchNextBlockFromNode(offset int64, checkPrevBlock bool, rpcClient *core.AbstractRPCClient, ...) (block *core.AbstractMsgBlock, prevBlockNumber, blockHeight int64, ...)
- func (i JaxNonSpentUTXOsIndex) InitRPCClient() (*core.AbstractRPCClient, error)
- type NonSpentUTXOsIndex
- type UTXO
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)
Click to show internal directories.
Click to hide internal directories.