work

package
v0.0.0-...-8c5539c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client *redis.Client
)

Functions

func AddBlock

func AddBlock(chain string, blockNumber uint64) error

func AddBlockTransactions

func AddBlockTransactions(chain string, block *types.Block, side string) error

func AddTransaction

func AddTransaction(chain string, blockNumber uint64, blockTime uint64, tx types.Transaction, side string) error

func BacklogWait

func BacklogWait(chain string) error

func BlockInQueue

func BlockInQueue(chain string, block uint64) (bool, error)

func BlockIndexComplete

func BlockIndexComplete(chain string, block string) (bool, error)

func ChainBlocks

func ChainBlocks(chain string) ([]int64, error)

func GetNextBlock

func GetNextBlock(chain string) (uint64, error)

func GetNextTx

func GetNextTx(chain string, order string) (*types.Transaction, string, error)

func IndexComplete

func IndexComplete(chain string, block string, txid string) (bool, error)

func Init

func Init() error

func OrphanedBlocks

func OrphanedBlocks(chain string) ([]int64, error)

func Outstanding

func Outstanding(chain string) bool

func PendingTxs

func PendingTxs(chain string) ([]string, error)

func PendingTxsCount

func PendingTxsCount(chain string) (int64, error)

func RemoveBlock

func RemoveBlock(chain string, block uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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