Documentation ¶
Index ¶
Constants ¶
View Source
const UniversalHardForkHeight = 0
Universal block reward ethash
Variables ¶
View Source
var UniversalBlockReward = math.MustParseBig256("2000000000000000000") // 2.00
View Source
var UniversalUncleReward = math.MustParseBig256("1750000000000000000") // 1.75
Functions ¶
func GetBlockEra ¶
GetBlockEra gets which "Era" a given block is within, given an era length (ecip-1017 has era=5,000,000 blocks) Returns a zero-index era number, so "Era 1": 0, "Era 2": 1, "Era 3": 2 ...
Types ¶
type BlockUnlocker ¶
type BlockUnlocker struct {
// contains filtered or unexported fields
}
func NewBlockUnlocker ¶
func NewBlockUnlocker(cfg *UnlockerConfig, backend *storage.RedisClient, network string) *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"` KeepNwFees bool `json:"keepNwFees"` TxGas string `json:"nwTxGas"` TxGasPrice string `json:"nwTxGasPrice"` // In Shannon Threshold int64 `json:"threshold"` BgSave bool `json:"bgsave"` }
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"` Depth int64 `json:"depth"` ImmatureDepth int64 `json:"immatureDepth"` KeepTxFees bool `json:"keepTxFees"` Interval string `json:"interval"` Daemon string `json:"daemon"` Timeout string `json:"timeout"` Ecip1017FBlock int64 `json:"ecip1017FBlock"` Ecip1017EraRounds *big.Int `json:"ecip1017EraRounds"` ByzantiumFBlock *big.Int `json:"byzantiumFBlock"` ConstantinopleFBlock *big.Int `json:"constantinopleFBlock"` Network string `json:"network"` IsLondonHardForkEnabled bool `json:"isLondonHardForkEnabled"` }
Click to show internal directories.
Click to hide internal directories.