SendWork() public méthode

public SendWork ( HashManager hashBlock, WorkBlock block ) : void
hashBlock HashManager
block WorkBlock
Résultat void
 void AssignWork(Client c)
 {
     if (mBlock != null)
     {
         //mEventLog.RecordEvent(EventLog.EventType.HashWork, string.Format("Allocating {0} hashes for client: {1}", c.mDesiredHashes, c.ToLogString()));
         HashManager.HashBlock hashes = mBlock.mHashMan.Allocate(c.mDesiredHashes, c);
         if (hashes != null)
         {
             //mEventLog.RecordEvent(EventLog.EventType.HashWork, string.Format("Sending hash range ({0} - {1}) to client: {2}", hashes.Start, hashes.Start + hashes.Count, c.ToLogString()));
             c.SendWork(hashes, mBlock);
         }
     }
 }
Exemple #2
0
 void AssignWork(Client c)
 {
     if (mBlock != null)
     {
         //mEventLog.RecordEvent(EventLog.EventType.HashWork, string.Format("Allocating {0} hashes for client: {1}", c.mDesiredHashes, c.ToLogString()));
         HashManager.HashBlock hashes = mBlock.mHashMan.Allocate(c.mDesiredHashes, c);
         if (hashes != null)
         {
             //mEventLog.RecordEvent(EventLog.EventType.HashWork, string.Format("Sending hash range ({0} - {1}) to client: {2}", hashes.Start, hashes.Start + hashes.Count, c.ToLogString()));
             c.SendWork(hashes, mBlock);
         }
     }
 }