digibyte

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// MainnetMagic is mainnet network constant
	MainnetMagic wire.BitcoinNet = 0xdab6c3fa
	TestnetMagic wire.BitcoinNet = 0xddbdc8fd
)

Variables

View Source
var (
	// MainNetParams are parser parameters for mainnet
	MainNetParams chaincfg.Params
	TestNetParams chaincfg.Params
)

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.BitcoinParser
}

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