Documentation ¶
Index ¶
Constants ¶
View Source
const (
MainnetMagic wire.BitcoinNet = 0x03d5b503
)
magic numbers
Variables ¶
View Source
var (
MainNetParams chaincfg.Params
)
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams returns network parameters
func NewUnobtaniumRPC ¶
func NewUnobtaniumRPC(config json.RawMessage, pushHandler func(notificationType bchain.NotificationType)) (bchain.BlockChain, error)
NewUnobtaniumRPC returns new UnobtaniumRPC instance
Types ¶
type UnobtaniumParser ¶
type UnobtaniumParser struct {
*btc.BitcoinParser
}
UnobtaniumParser handle
func NewUnobtaniumParser ¶
func NewUnobtaniumParser(params *chaincfg.Params, c *btc.Configuration) *UnobtaniumParser
NewUnobtaniumParser returns new UnobtaniumParser instance
func (*UnobtaniumParser) ParseBlock ¶
func (p *UnobtaniumParser) 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 UnobtaniumRPC ¶
type UnobtaniumRPC struct {
*btc.BitcoinRPC
}
UnobtaniumRPC is an interface to JSON-RPC bitcoind service
func (*UnobtaniumRPC) Initialize ¶
func (b *UnobtaniumRPC) Initialize() error
Initialize initializes UnobtaniumRPC instance.
Click to show internal directories.
Click to hide internal directories.