Esempio n. 1
0
        public void Start(LbryStratum aLbryStratum, int aLbryIntensity, int aLbryLocalWorkSize)
        {
            Stratum = aLbryStratum;
            mLbryGlobalWorkSizeArray[0] = aLbryIntensity * OpenCLDevice.GetMaxComputeUnits() * aLbryLocalWorkSize;
            mLbryLocalWorkSizeArray[0]  = aLbryLocalWorkSize;

            base.Start();
        }
Esempio n. 2
0
        public void Start(EthashStratum aEthashStratum, int aEthashIntensity, int aEthashLocalWorkSize, LbryStratum aLbryStratum, int aLbryIntensity, int aLbryLocalWorkSize)
        {
            mEthashStratum = aEthashStratum;
            mEthashLocalWorkSizeArray[0]  = aEthashLocalWorkSize;
            mEthashGlobalWorkSizeArray[0] = aEthashIntensity * mEthashLocalWorkSizeArray[0] * OpenCLDevice.GetComputeDevice().MaxComputeUnits;

            mLbryStratum = aLbryStratum;

            base.Start();
        }
Esempio n. 3
0
 public Job(LbryStratum aStratum, string aID, string aPrevHash, string aTrie, string aCoinbase1, string aCoinbase2, string[] aMerkles, string aVersion, string aNBits, string aNTime)
     : base(aStratum)
 {
     mStratum   = aStratum;
     mID        = aID;
     mPrevHash  = aPrevHash;
     mTrie      = aTrie;
     mCoinbase1 = aCoinbase1;
     mCoinbase2 = aCoinbase2;
     mMerkles   = aMerkles;
     mVersion   = aVersion;
     mNBits     = aNBits;
     mNTime     = aNTime;
 }
Esempio n. 4
0
 public override void SetPrimaryStratum(Stratum stratum)
 {
     Stratum = (LbryStratum)stratum;
 }