fdreserve

package
v0.0.0-...-c222834 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0x74d1c2a5
)

Variables

View Source
var (
	MainNetParams chaincfg.Params
)

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

func NewFdreserveRPC

func NewFdreserveRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)

Types

type FdreserveParser

type FdreserveParser struct {
	*btc.BitcoinParser
	// contains filtered or unexported fields
}

func NewFdreserveParser

func NewFdreserveParser(params *chaincfg.Params, c *btc.Configuration) *FdreserveParser

func (*FdreserveParser) PackTx

func (p *FdreserveParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byte, error)

func (*FdreserveParser) UnpackTx

func (p *FdreserveParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error)

type FdreserveRPC

type FdreserveRPC struct {
	*btc.BitcoinRPC
}

func (*FdreserveRPC) GetBlock

func (b *FdreserveRPC) GetBlock(hash string, height uint32) (*bchain.Block, error)

func (*FdreserveRPC) GetTransactionForMempool

func (b *FdreserveRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error)

func (*FdreserveRPC) Initialize

func (b *FdreserveRPC) Initialize() error

Jump to

Keyboard shortcuts

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