Help us shape the future of Go! Take the 2026 Go Developer Survey

network

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrPayoutNotEqualBlockReward ..
	ErrPayoutNotEqualBlockReward = errors.New(
		"total payout not equal to blockreward",
	)
	// EmptyPayout ..
	EmptyPayout = noReward{}
)

Functions

func Adjustment

func Adjustment(percentageStaked numeric.Dec) (numeric.Dec, numeric.Dec)

Adjustment ..

func NewPreStakingEraRewarded added in v1.3.5

func NewPreStakingEraRewarded(totalAmount *big.Int) reward.Reader

NewPreStakingEraRewarded ..

func NewStakingEraRewardForRound added in v1.3.5

func NewStakingEraRewardForRound(
	totalPayout *big.Int,
	mia shard.SlotList,
	beaconP, shardP []reward.Payout,
) reward.Reader

NewStakingEraRewardForRound ..

func WhatPercentStakedNow

func WhatPercentStakedNow(
	beaconchain engine.ChainReader,
	timestamp int64,
) (*big.Int, *numeric.Dec, error)

WhatPercentStakedNow ..

Types

type UtilityMetric

type UtilityMetric struct {
	AccumulatorSnapshot     *big.Int
	CurrentStakedPercentage numeric.Dec
	Deviation               numeric.Dec
	Adjustment              numeric.Dec
}

UtilityMetric ..

func NewUtilityMetricSnapshot

func NewUtilityMetricSnapshot(beaconchain engine.ChainReader) (*UtilityMetric, error)

NewUtilityMetricSnapshot ..

Jump to

Keyboard shortcuts

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