Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0x4e564152 TestnetMagic wire.BitcoinNet = 0x544e5652 )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters
func NewRavencoinRPC ¶
func NewRavencoinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewRavencoinRPC returns new RavencoinRPC instance.
Types ¶
type RavencoinParser ¶
type RavencoinParser struct {
*btc.BitcoinParser
}
RavencoinParser handle
func NewRavencoinParser ¶
func NewRavencoinParser(params *chaincfg.Params, c *btc.Configuration) *RavencoinParser
NewRavencoinParser returns new RavencoinParser instance
func (*RavencoinParser) ParseBlock ¶
func (p *RavencoinParser) ParseBlock(b []byte) (*bchain.Block, error)
ParseBlock parses raw block to our Block struct
type RavencoinRPC ¶
type RavencoinRPC struct {
*btc.BitcoinRPC
}
RavencoinRPC is an interface to JSON-RPC bitcoind service.
func (*RavencoinRPC) Initialize ¶
func (b *RavencoinRPC) Initialize() error
Initialize initializes RavencoinRPC instance.
Click to show internal directories.
Click to hide internal directories.