processor

package
v1.0.1-0...-4c0226b Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const COIN = 100000000

COIN satoshi per bitcoin

View Source
const MEGABYTE = 1000000

MEGABYTE size of one megabyte in byte

Variables

This section is empty.

Functions

func HandleHashBlock

func HandleHashBlock(payload string)

HandleHashBlock handles a incoming zmq block hash

func HandleHashTx

func HandleHashTx(payload string)

HandleHashTx handles incoming zmq tx hashes

func HandleRawBlock

func HandleRawBlock(payload string, pool *database.RedisPool)

HandleRawBlock handles a raw incoming zmq block

func HandleRawTx

func HandleRawTx(payload string)

HandleRawTx handles a incoming zmq raw tx

func HandleRawTxWithSizeAndFee

func HandleRawTxWithSizeAndFee(payload string, pool *database.RedisPool)

HandleRawTxWithSizeAndFee handles the special rawtx2 zmq message which contains a tx, it's size and it's fee as 64 bit ints

func ProcessMempool

func ProcessMempool(mempool map[string]types.PartialMempoolEntry, redisPool *database.RedisPool)

ProcessMempool starts various processing functions on the passed mempool map

Types

This section is empty.

Jump to

Keyboard shortcuts

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