monacoin

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xdbb6c0fb
	TestnetMagic wire.BitcoinNet = 0xf1c8d2fd
)

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 Monacoin network, and the test Monacoin network

func NewMonacoinRPC

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

NewMonacoinRPC returns new MonacoinRPC instance.

Types

type MonacoinParser

type MonacoinParser struct {
	*btc.BitcoinParser
}

MonacoinParser handle

func NewMonacoinParser

func NewMonacoinParser(params *chaincfg.Params, c *btc.Configuration) *MonacoinParser

NewMonacoinParser returns new MonacoinParser instance

type MonacoinRPC

type MonacoinRPC struct {
	*btc.BitcoinRPC
}

MonacoinRPC is an interface to JSON-RPC bitcoind service.

func (*MonacoinRPC) Initialize

func (b *MonacoinRPC) Initialize() error

Initialize initializes MonacoinRPC instance.

Jump to

Keyboard shortcuts

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