mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
Initial CryptoNight.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user