Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0xcbc6680f RegtestMagic wire.BitcoinNet = 0x377b972d )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params RegtestParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams returns network parameters
func NewViacoinRPC ¶
func NewViacoinRPC(config json.RawMessage, pushHandler func(notificationType bchain.NotificationType)) (bchain.BlockChain, error)
NewViacoinRPC returns new ViacoinRPC instance
Types ¶
type ViacoinParser ¶
type ViacoinParser struct {
*btc.BitcoinParser
}
ViacoinParser handle
func NewViacoinParser ¶
func NewViacoinParser(params *chaincfg.Params, c *btc.Configuration) *ViacoinParser
NewViacoinParser returns new VertcoinParser instance
func (*ViacoinParser) ParseBlock ¶
func (p *ViacoinParser) ParseBlock(b []byte) (*bchain.Block, error)
ParseBlock parses raw block to our Block struct it has special handling for Auxpow blocks that cannot be parsed by standard btc wire parse
type ViacoinRPC ¶
type ViacoinRPC struct {
*btc.BitcoinRPC
}
ViacoinRPC is an interface to JSON-RPC bitcoind service
func (*ViacoinRPC) Initialize ¶
func (b *ViacoinRPC) Initialize() error
Initialize initializes ViacoinRPC instance.
Click to show internal directories.
Click to hide internal directories.