btcd

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: ISC Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBitcoinResponse

func DecodeBitcoinResponse(c *btcdjson.GetBlockTemplateResult) (
	block *btcdwire.MsgBlock, height int64, err error)

Types

type BlockProvider

type BlockProvider struct {
	// contains filtered or unexported fields
}

func NewBlockProvider

func NewBlockProvider(cfg Configuration, minerAddress jaxutil.Address) (*BlockProvider, error)

func (*BlockProvider) NewBlockTemplate

func (bg *BlockProvider) NewBlockTemplate(burnRewardFlag int, beaconHash chainhash.Hash) (wire.BTCBlockAux, bool, error)

type Configuration

type Configuration struct {
	Network string `yaml:"network" toml:"network"`
	RPC     RPCCfg `yaml:"rpc" toml:"rpc"`
	Enable  bool   `yaml:"enable" toml:"enable"`
}

type RPCCfg

type RPCCfg struct {
	Host     string `yaml:"host" toml:"host"`
	User     string `yaml:"user" toml:"user"`
	Password string `yaml:"pass" toml:"pass"`
}

Jump to

Keyboard shortcuts

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