ravencoin

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

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

func GetChainParams(chain string) *chaincfg.Params

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.

Jump to

Keyboard shortcuts

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