Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2023 Changes in this version + const MaxReqSize + func ConstructRawBlockHex(oBlock *Block, tplJob *BlockTemplateJob, tpl *BlockTemplate) (string, error) + func ScryptHashVerify(oBlock *Block) bool + type Block struct + type BlockTemplate struct + BlockTplJobMap map[string]BlockTemplateJob + Difficulty *big.Int + Height uint32 + NBits uint32 + PrevHash string + Target string + TxDetailMap map[string]string + Version uint32 + type BlockTemplateJob struct + BlkTplJobId string + BlkTplJobTime uint32 + CoinBase1 string + CoinBase2 string + CoinBaseValue int64 + DefaultWitnessCommitment string + JobTxsFeeTotal int64 + MerkleBranch []string + TxIdList []string + type ClusterNode struct + NodeId uint16 + NodeIp string + NodeName string + type Config struct + Api api.ApiConfig + BlockUnlocker payouts.UnlockerConfig + Cluster []ClusterNode + Coin string + CoinBaseExtraData string + Id uint16 + Log Log + Name string + NewrelicEnabled bool + NewrelicKey string + NewrelicName string + NewrelicVerbose bool + Payouts payouts.PayoutsConfig + Proxy Proxy + Redis storage.Config + Threads int + Upstream []Upstream + UpstreamCheckInterval string + UpstreamCoinBase string + UpstreamCoinBaseEncrypted string + type DiffAdjust struct + AdjustInv string + Enabled bool + ExpectShareCount int64 + type ErrorReply struct + Code int + Message string + type JSONPushMessage struct + Id json.RawMessage + Method string + Params interface{} + type JSONRpcReq struct + Id json.RawMessage + Method string + Params json.RawMessage + type JSONRpcResp struct + Error interface{} + Id json.RawMessage + Result interface{} + Version string + type Log struct + LogSetLevel int + type Proxy struct + BehindReverseProxy bool + BlockRefreshInterval string + BlockTemplateInterval string + DiffAdjust DiffAdjust + Difficulty int64 + Enabled bool + HashrateExpiration string + HealthCheck bool + LimitBodySize int64 + LimitHeadersSize int + Listen string + MaxFails int64 + Policy policy.Config + StateUpdateInterval string + Stratum Stratum + type ProxyServer struct + func NewProxy(cfg *Config, backend *storage.RedisClient) *ProxyServer + func (s *ProxyServer) DumpAllSessionNames() map[string]struct{} + func (s *ProxyServer) ListenTCP() + func (s *ProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *ProxyServer) Start() + func (s *ProxyServer) UpdateAllSessionDiff() + type Session struct + type Stratum struct + Enabled bool + Listen string + MaxConn int + Timeout string + type StratumReq struct + type SubmitReply struct + Status string + type Upstream struct + Name string + Timeout string + Url string