Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0xefbeadde TestnetMagic wire.BitcoinNet = 0x0cb0cefa )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main CPUchain network, and the test CPUchain network
func NewCPUchainRPC ¶
func NewCPUchainRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewCPUchainRPC returns new CPUchainRPC instance.
Types ¶
type CPUchainParser ¶
type CPUchainParser struct {
*btc.BitcoinParser
}
CPUchainParser handle
func NewCPUchainParser ¶
func NewCPUchainParser(params *chaincfg.Params, c *btc.Configuration) *CPUchainParser
NewCPUchainParser returns new CPUchainParser instance
type CPUchainRPC ¶
type CPUchainRPC struct {
*btc.BitcoinRPC
}
CPUchainRPC is an interface to JSON-RPC bitcoind service.
func (*CPUchainRPC) Initialize ¶
func (b *CPUchainRPC) Initialize() error
Initialize initializes CPUchainRPC instance.
Click to show internal directories.
Click to hide internal directories.