Initial CryptoNight.

This commit is contained in:
XMRig 2017-06-08 09:47:25 +03:00
parent 5a606be8be
commit 878e021ff6
7 changed files with 520 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#include "App.h"
#include "Console.h"
#include "Cpu.h"
#include "crypto/CryptoNight.h"
#include "net/Client.h"
#include "net/Network.h"
#include "Options.h"
@ -61,6 +62,11 @@ App::exec()
return 0;
}
if (!CryptoNight::init(m_options->algo(), m_options->algoVariant())) {
LOG_ERR("\"%s\" hash self-test failed.", m_options->algoName());
return 1;
}
Summary::print();
m_network->connect();