digibyte

package
v0.0.0-...-fae8f5a Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xdab6c3fa
	TestnetMagic wire.BitcoinNet = 0xddbdc8fd
)

network constants

Variables

View Source
var (
	MainNetParams chaincfg.Params
	TestNetParams chaincfg.Params
)

parser parameters

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main DigiByte network and the DigiByte Testnet network

func NewDigiByteRPC

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

NewDigiByteRPC returns new DigiByteRPC instance.

Types

type DigiByteParser

type DigiByteParser struct {
	*btc.BitcoinLikeParser
}

DigiByteParser handle

func NewDigiByteParser

func NewDigiByteParser(params *chaincfg.Params, c *btc.Configuration) *DigiByteParser

NewDigiByteParser returns new DigiByteParser instance

type DigiByteRPC

type DigiByteRPC struct {
	*btc.BitcoinRPC
}

DigiByteRPC is an interface to JSON-RPC bitcoind service.

func (*DigiByteRPC) Initialize

func (b *DigiByteRPC) Initialize() error

Initialize initializes DigiByteRPC instance.

Jump to

Keyboard shortcuts

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