dogecoin

package
v0.0.0-...-fae8f5a Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

magic numbers

Variables

View Source
var (
	MainNetParams chaincfg.Params
	TestNetParams chaincfg.Params
)

chain parameters

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.BitcoinLikeParser
}

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