Ejemplo n.º 1
0
        /// <summary>
        /// Create instance, but not connect yet.
        /// </summary>
        public StratumConnet(string _ip, int _port, byte _id, string _login, string _pwd, bool _ssl = false, string algo = "grin29")
        {
            this.ip   = _ip;
            this.port = _port;
            id        = _id;
            login     = _login;
            password  = _pwd;
            UseSsl    = _ssl;

            type = CuckooType.SWAP;

            IsConnected = false;
        }
Ejemplo n.º 2
0
 internal void SetProof(CuckooType type)
 {
     graph.PROOFSIZE = 32u;
 }
Ejemplo n.º 3
0
 internal void SetProof(CuckooType type)
 {
     graph.PROOFSIZE = (type == CuckooType.GRIN29) ? 42u : 32u;
 }