Exemplo n.º 1
0
        public void Crack(string hash)
        {
            if (!Initialized)
            {
                return;
            }

            ProcessBlock block = GetFreeBlock();

            ConnectionManager.Instance.Broadcast(new ProcessingBlockNotifyPacket(block.BlockId, BlockState.Processing));

            Cracker cracker = new Cracker(hash, block);

            cracker.OnCompleted += OnCompleted;

            if (ProcessingThread != null)
            {
                //MessageBox.Show(ProcessingThread.ThreadState.ToString());
                ProcessingThread = null;
            }

            ProcessingThread = new Thread(new ThreadStart(cracker.Run));
            ProcessingThread.Start();
            //MessageBox.Show("cracking " + block.BlockId);
        }
Exemplo n.º 2
0
        public void Crack(string hash)
        {
            if (!Initialized)
                return;

            ProcessBlock block = GetFreeBlock();
            ConnectionManager.Instance.Broadcast(new ProcessingBlockNotifyPacket(block.BlockId, BlockState.Processing));

            Cracker cracker = new Cracker(hash, block);
            cracker.OnCompleted += OnCompleted;

            if (ProcessingThread != null)
            {
                //MessageBox.Show(ProcessingThread.ThreadState.ToString());
                ProcessingThread = null;
            }

            ProcessingThread = new Thread(new ThreadStart(cracker.Run));
            ProcessingThread.Start();
            //MessageBox.Show("cracking " + block.BlockId);
        }