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 ¶
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.BitcoinLikeParser
}
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 ¶
Initialize initializes PolisRPC instance.
Click to show internal directories.
Click to hide internal directories.