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 ¶
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.
Click to show internal directories.
Click to hide internal directories.