Documentation ¶
Index ¶
Constants ¶
View Source
const (
MainnetMagic wire.BitcoinNet = 0xfeb4bef9
)
Variables ¶
View Source
var (
MainNetParams chaincfg.Params
)
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Namecoin network, and the test Namecoin network
func NewNamecoinRPC ¶
func NewNamecoinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewNamecoinRPC returns new NamecoinRPC instance.
Types ¶
type NamecoinParser ¶
type NamecoinParser struct {
*btc.BitcoinParser
}
NamecoinParser handle
func NewNamecoinParser ¶
func NewNamecoinParser(params *chaincfg.Params, c *btc.Configuration) *NamecoinParser
NewNamecoinParser returns new NamecoinParser instance
func (*NamecoinParser) ParseBlock ¶
func (p *NamecoinParser) 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 parser
type NamecoinRPC ¶
type NamecoinRPC struct {
*btc.BitcoinRPC
}
NamecoinRPC is an interface to JSON-RPC namecoin service.
func (*NamecoinRPC) Initialize ¶
func (b *NamecoinRPC) Initialize() error
Initialize initializes NamecoinRPC instance.
Click to show internal directories.
Click to hide internal directories.