コード例 #1
0
 public PascalMiner(PascalStratum ps, Device device, PascalWorkerI pascalWorker)
 {
     this.ps           = ps;
     this.device       = device;
     this.pascalWorker = pascalWorker;
     pascalWorker.SetNonceCallback(this);
 }
コード例 #2
0
        public static void startPascal()
        {
            PascalBinaryFPGADevice pd = new PascalBinaryFPGADevice(0, Settings.comPort);
            PascalStratum          ps = new PascalStratum(Settings.poolAddr, Settings.poolPort, Settings.poolUser, Settings.poolPass, Settings.poolName);
            PascalMiner            pm = new PascalMiner(ps, pd, pd);

            pm.workLoop();
        }
コード例 #3
0
 public Job(PascalStratum aStratum, string aID, string aCoinbase1, string aCoinbase2, string aNTime)
     : base(aStratum)
 {
     mStratum   = aStratum;
     mID        = aID;
     mCoinbase1 = aCoinbase1;
     mCoinbase2 = aCoinbase2;
     mNTime     = aNTime;
 }