dogecoin

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2018 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xc0c0c0c0
)

Variables

View Source
var (
	MainNetParams chaincfg.Params
)

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

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) GetBlock

func (b *DogecoinRPC) GetBlock(hash string, height uint32) (*bchain.Block, error)

GetBlock returns block with given hash.

func (*DogecoinRPC) Initialize

func (b *DogecoinRPC) Initialize() error

Initialize initializes DogecoinRPC instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL