BitCoinClient.Worker.SendWorkComplete C# (CSharp) Method

SendWorkComplete() public method

public SendWorkComplete ( bool solutionFound, uint solution, uint hashesDone ) : void
solutionFound bool
solution uint
hashesDone uint
return void
        void SendWorkComplete(bool solutionFound, uint solution, uint hashesDone)
        {
            BinaryWriter bw = new BinaryWriter(mClient.GetStream());
            bw.Write((byte)2);  // Work Complete Packet
            bw.Write((byte)(solutionFound ? 1 : 0));
            bw.Write(solution);
            bw.Write(hashesDone);
            mDoWork = false;
            //Console.WriteLine("Sent Work Complete: " + solutionFound + "(" + solution + ") - " + hashesDone);
        }