payouts

package
v0.0.0-...-96fa3d3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BlockReward *big.Int = new(big.Int).Mul(big.NewInt(10), big.NewInt(1e+18))
)

Functions

This section is empty.

Types

type BlockUnlocker

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

func NewBlockUnlocker

func NewBlockUnlocker(cfg *UnlockerConfig, backend *storage.RedisClient) *BlockUnlocker

func (*BlockUnlocker) Start

func (u *BlockUnlocker) Start()

type PayoutsConfig

type PayoutsConfig struct {
	Enabled      bool   `json:"enabled"`
	RequirePeers int64  `json:"requirePeers"`
	Interval     string `json:"interval"`
	Daemon       string `json:"daemon"`
	Timeout      string `json:"timeout"`
	Address      string `json:"address"`
	Gas          string `json:"gas"`
	GasPrice     string `json:"gasPrice"`
	AutoGas      bool   `json:"autoGas"`
	// In Shannon
	Threshold    int64 `json:"threshold"`
	BgSave       bool  `json:"bgsave"`
	ConcurrentTx int   `json:"concurrentTx"`
}

func (PayoutsConfig) GasHex

func (self PayoutsConfig) GasHex() string

func (PayoutsConfig) GasPriceHex

func (self PayoutsConfig) GasPriceHex() string

type PayoutsProcessor

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

func NewPayoutsProcessor

func NewPayoutsProcessor(cfg *PayoutsConfig, backend *storage.RedisClient) *PayoutsProcessor

func (*PayoutsProcessor) Start

func (u *PayoutsProcessor) Start()

type UnlockResult

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

type UnlockerConfig

type UnlockerConfig struct {
	Enabled        bool    `json:"enabled"`
	PoolFee        float64 `json:"poolFee"`
	PoolFeeAddress string  `json:"poolFeeAddress"`
	Donate         bool    `json:"donate"`
	Depth          int64   `json:"depth"`
	ImmatureDepth  int64   `json:"immatureDepth"`
	KeepTxFees     bool    `json:"keepTxFees"`
	Interval       string  `json:"interval"`
	Daemon         string  `json:"daemon"`
	Timeout        string  `json:"timeout"`
}

Jump to

Keyboard shortcuts

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