Versions in this module Expand all Collapse all v0 v0.1.1 Oct 24, 2023 v0.1.0 Oct 7, 2023 Changes in this version + var BLOCK = 101 + var BlockLog *PoolLogger + var DEBUG = 10 + var Debug *PoolLogger + var Diff1 = StringToBig("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF") + var ERROR = 40 + var Error *PoolLogger + var INFO = 20 + var Info *PoolLogger + var SHARE = 100 + var Satoshi = math.BigPow(10, 0) + var ShareLog *PoolLogger + var WARN = 30 + var Warn *PoolLogger + var Xmr = math.BigPow(10, 12) + func Ae64Decode(str string, key []byte) ([]byte, error) + func Ae64Encode(src []byte, key []byte) (string, error) + func FormatRatReward(reward *big.Rat) string + func GetHashDifficulty(hashBytes []byte) (*big.Int, bool) + func GetTargetHex(diff int64) string + func InitLog(infoFile, errorFile, shareFile, blockFile string, setLevel int) + func MakeTimestamp() int64 + func MustParseDuration(s string) time.Duration + func SetRLimit(v uint64) — linux/amd64, windows/amd64 + func StringToBig(h string) *big.Int + 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{})