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