fujicoin

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 is mainnet network constant
	MainnetMagic wire.BitcoinNet = 0x696a7566
	// TestnetMagic is testnet network constant
	TestnetMagic wire.BitcoinNet = 0x66756a69
	// RegtestMagic is regtest network constant
	RegtestMagic wire.BitcoinNet = 0x66756a69
)

Variables

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

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main Fujicoin network, and the test Fujicoin network

func NewFujicoinRPC

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

NewFujicoinRPC returns new FujicoinRPC instance.

Types

type FujicoinParser

type FujicoinParser struct {
	*btc.BitcoinParser
}

FujicoinParser handle

func NewFujicoinParser

func NewFujicoinParser(params *chaincfg.Params, c *btc.Configuration) *FujicoinParser

NewFujicoinParser returns new FujicoinParser instance

type FujicoinRPC

type FujicoinRPC struct {
	*btc.BitcoinRPC
}

FujicoinRPC is an interface to JSON-RPC bitcoind service.

func (*FujicoinRPC) Initialize

func (b *FujicoinRPC) Initialize() error

Initialize initializes FujicoinRPC instance.

Jump to

Keyboard shortcuts

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