Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HashRateLimit ratelimit.Limiter
Functions ¶
func DifficultyAtFromList ¶
func DifficultyAtFromList(spot int, list []*opr.UniqueOPRData) (index int, diff uint64)
DifficultyAt will return the difficulty at the spot or the closest spot to it if we don't have enough. So if you target 50, and we only have 4, it will return the 4th.
func RandomDifficulty ¶
func RandomDifficulty() uint64
func UpdateHashRate ¶
Types ¶
type PerBlock ¶
type PerBlock struct { Height int Duration time.Duration TotalHashes uint64 NonceAggregator *opr.NonceRanking }
func (*PerBlock) DifficultyAt ¶
DifficultyAt will return the difficulty at the spot or the closest spot to it if we don't have enough. So if you target 50, and we only have 4, it will return the 4th.