Documentation ¶
Index ¶
- type Config
- type Miner
- func (m *Miner) BitcoinBalance(ctx context.Context, scriptHash string) (*bfgapi.BitcoinBalanceResponse, error)
- func (m *Miner) BitcoinInfo(ctx context.Context) (*bfgapi.BitcoinInfoResponse, error)
- func (m *Miner) BitcoinUTXOs(ctx context.Context, scriptHash string) (*bfgapi.BitcoinUTXOsResponse, error)
- func (m *Miner) L2Keystones(ctx context.Context, count uint64) (*bfgapi.L2KeystonesResponse, error)
- func (m *Miner) Ping(ctx context.Context, timestamp int64) (*bfgapi.PingResponse, error)
- func (m *Miner) Run(pctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // BFGWSURL specifies the URL of the BFG private websocket endpoint BFGWSURL string // BTCChainName specifies the name of the Bitcoin chain that // this PoP miner is operating on. BTCChainName string // XXX are we brave enough to rename this BTCNetwork? // BTCPrivateKey provides a BTC private key as a string of // hexadecimal digits. BTCPrivateKey string LogLevel string PrometheusListenAddress string }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Miner ¶
type Miner struct {
// contains filtered or unexported fields
}
func (*Miner) BitcoinBalance ¶
func (*Miner) BitcoinInfo ¶
func (*Miner) BitcoinUTXOs ¶
func (*Miner) L2Keystones ¶
Click to show internal directories.
Click to hide internal directories.