cpuchain

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 wire.BitcoinNet = 0xefbeadde
	TestnetMagic wire.BitcoinNet = 0x0cb0cefa
)

magic numbers

Variables

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

chain parameters

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

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.

Jump to

Keyboard shortcuts

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