polis

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 = 0xbd6b0cbf
	TestnetMagic wire.BitcoinNet = 0xffcae2ce
	RegtestMagic wire.BitcoinNet = 0xdcb7c1fc
)

magic numbers

Variables

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

chain parameters

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main Polis network, the regression test Polis network, the test Polis network and the simulation test Polis network, in this order

func NewPolisRPC

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

NewPolisRPC returns new PolisRPC instance.

Types

type PolisParser

type PolisParser struct {
	*btc.BitcoinParser
}

PolisParser handle

func NewPolisParser

func NewPolisParser(params *chaincfg.Params, c *btc.Configuration) *PolisParser

NewPolisParser returns new PolisParser instance

type PolisRPC

type PolisRPC struct {
	*btc.BitcoinRPC
}

PolisRPC is an interface to JSON-RPC bitcoind service.

func (*PolisRPC) Initialize

func (b *PolisRPC) Initialize() error

Initialize initializes PolisRPC instance.

Jump to

Keyboard shortcuts

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