Initial CryptoNight.
This commit is contained in:
parent
5a606be8be
commit
878e021ff6
7 changed files with 520 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue