util

package
v0.0.0-...-763b36d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRatReward

func FormatRatReward(reward *big.Rat) string

func FormatReward

func FormatReward(reward *big.Int) string

func GetTargetHex

func GetTargetHex(diff int64) string

func IsValidHexAddress

func IsValidHexAddress(s string) bool

func IsZeroHash

func IsZeroHash(s string) bool

func MakeTimestamp

func MakeTimestamp() int64

func Max

func Max(x, y int64) int64

func Min

func Min(x, y int64) int64

func MustParseDuration

func MustParseDuration(s string) time.Duration

func StringInSlice

func StringInSlice(a string, list []string) bool

func TargetHexToDiff

func TargetHexToDiff(targetHex string) *big.Int

func ToHex

func ToHex(n int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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