public Job(Stratum aStratum, string aID, string aSeedhash, string aHeaderhash)
     : base(aStratum)
 {
     mID         = aID;
     mSeedhash   = aSeedhash;
     mHeaderhash = aHeaderhash;
 }
 public Job(Stratum aStratum, string aID, string aBlob, string aTarget)
     : base(aStratum)
 {
     mID     = aID;
     mBlob   = aBlob;
     mTarget = aTarget;
 }
예제 #3
0
 public Job(Stratum aStratum)
 {
     mStratum = aStratum;
     try { mMutex.WaitOne(5000); } catch (Exception) { }
     nextLocalExtranonce = 0;
     for (int i = 0; i < mStratum.LocalExtranonceSize; ++i)
     {
         nextLocalExtranonce |= (UInt64)r.Next(32, 255) << (i * 8); // TODO
     }
     try { mMutex.ReleaseMutex(); } catch (Exception) { }
 }
 public override void SetPrimaryStratum(Stratum stratum)
 {
     Stratum = (CryptoNightStratum)stratum;
 }
예제 #5
0
 public Job(Stratum aStratum, string aID, string aSeedhash, string aHeaderhash)
     : base(aStratum, aID, aSeedhash, aHeaderhash)
 {
 }
예제 #6
0
 public virtual void SetSecondaryStratum(Stratum stratum)
 {
     throw new System.InvalidOperationException();
 }
예제 #7
0
 public override void SetSecondaryStratum(Stratum stratum)
 {
     SecondaryStratum = (PascalStratum)stratum;
 }
예제 #8
0
 public override void SetPrimaryStratum(Stratum stratum)
 {
     PrimaryStratum = (EthashStratum)stratum;
 }
예제 #9
0
 public override void SetPrimaryStratum(Stratum stratum)
 {
     Stratum = (PascalStratum)stratum;
 }
예제 #10
0
 public override void SetPrimaryStratum(Stratum stratum)
 {
     Stratum = (NeoScryptStratum)stratum;
 }