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