dash

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xbd6b0cbf
	TestnetMagic wire.BitcoinNet = 0xffcae2ce
	RegtestMagic wire.BitcoinNet = 0xdcb7c1fc
)

Variables

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

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main Dash network, the regression test Dash network, the test Dash network and the simulation test Dash network, in this order

func NewDashRPC

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

NewDashRPC returns new DashRPC instance.

Types

type DashParser

type DashParser struct {
	*btc.BitcoinParser
}

DashParser handle

func NewDashParser

func NewDashParser(params *chaincfg.Params, c *btc.Configuration) *DashParser

NewDashParser returns new DashParser instance

type DashRPC

type DashRPC struct {
	*btc.BitcoinRPC
}

DashRPC is an interface to JSON-RPC bitcoind service.

func (*DashRPC) Initialize

func (b *DashRPC) Initialize() error

Initialize initializes DashRPC instance.

Jump to

Keyboard shortcuts

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