Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2023 Changes in this version + var BLOCK = 101 + var BlockLog *PoolLogger + var DEBUG = 10 + var Debug *PoolLogger + var ERROR = 40 + var Error *PoolLogger + var INFO = 20 + var Info *PoolLogger + var LTC = math.BigPow(10, 8) + var SHARE = 100 + var Satoshi = math.BigPow(10, 0) + var ShareLog *PoolLogger + var WARN = 30 + var Warn *PoolLogger + func Ae64Decode(str string, key []byte) ([]byte, error) + func Ae64Encode(src []byte, key []byte) (string, error) + func FormatRatReward(reward *big.Rat) string + func FormatReward(reward *big.Int) string + func GetTargetHex(diff int64) string + func Hash256StratumFormat(hexStr string) (string, error) + func InitLog(infoFile, errorFile, shareFile, blockFile string, setLevel int) + func IsValidLTCAddress(address string) bool + func IsZeroHash(s string) bool + func MakeTimestamp() int64 + func MustParseDuration(s string) time.Duration + func String2Big(num string) *big.Int + func StringInSlice(a string, list []string) bool + func TargetHash256StratumFormat(hexStr string) (string, error) + func TargetHexToDiff(targetHex string) *big.Int + func ToHex(n int64) string + type PoolLogger struct + func (l *PoolLogger) Fatal(v ...interface{}) + func (l *PoolLogger) Fatalf(format string, v ...interface{}) + func (l *PoolLogger) Fatalln(v ...interface{}) + func (l *PoolLogger) Panic(v ...interface{}) + func (l *PoolLogger) Panicf(format string, v ...interface{}) + func (l *PoolLogger) Panicln(v ...interface{}) + func (l *PoolLogger) Print(v ...interface{}) + func (l *PoolLogger) Printf(format string, v ...interface{}) + func (l *PoolLogger) Println(v ...interface{})