Documentation ¶
Index ¶
- Variables
- 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)
- func StringToBig(h string) *big.Int
- type PoolLogger
- 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{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DEBUG = 10 INFO = 20 WARN = 30 ERROR = 40 SHARE = 100 BLOCK = 101 Debug *PoolLogger Info *PoolLogger Warn *PoolLogger Error *PoolLogger BlockLog *PoolLogger )
View Source
var Diff1 = StringToBig("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")
View Source
var Satoshi = math.BigPow(10, 0)
View Source
var Xmr = math.BigPow(10, 12)
Functions ¶
func FormatRatReward ¶
func GetTargetHex ¶
func MakeTimestamp ¶
func MakeTimestamp() int64
func MustParseDuration ¶
func StringToBig ¶
Types ¶
type PoolLogger ¶
type PoolLogger struct {
// contains filtered or unexported fields
}
func (*PoolLogger) Fatal ¶
func (l *PoolLogger) Fatal(v ...interface{})
func (*PoolLogger) Fatalf ¶
func (l *PoolLogger) Fatalf(format string, v ...interface{})
func (*PoolLogger) Fatalln ¶
func (l *PoolLogger) Fatalln(v ...interface{})
func (*PoolLogger) Panic ¶
func (l *PoolLogger) Panic(v ...interface{})
func (*PoolLogger) Panicf ¶
func (l *PoolLogger) Panicf(format string, v ...interface{})
func (*PoolLogger) Panicln ¶
func (l *PoolLogger) Panicln(v ...interface{})
func (*PoolLogger) Print ¶
func (l *PoolLogger) Print(v ...interface{})
func (*PoolLogger) Printf ¶
func (l *PoolLogger) Printf(format string, v ...interface{})
func (*PoolLogger) Println ¶
func (l *PoolLogger) Println(v ...interface{})
Click to show internal directories.
Click to hide internal directories.