digibyte

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

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

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main DigiByte 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 VertcoinParser 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