Added classes Api and ApiState.
This commit is contained in:
parent
5601c7a672
commit
71f06530df
8 changed files with 270 additions and 4 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <uv.h>
|
||||
|
||||
|
||||
#include "api/Api.h"
|
||||
#include "App.h"
|
||||
#include "Console.h"
|
||||
#include "Cpu.h"
|
||||
|
@ -124,6 +125,8 @@ int App::exec()
|
|||
Mem::allocate(m_options->algo(), m_options->threads(), m_options->doubleHash(), m_options->hugePages());
|
||||
Summary::print();
|
||||
|
||||
Api::start();
|
||||
|
||||
# ifndef XMRIG_NO_HTTPD
|
||||
m_httpd = new Httpd(m_options->apiPort(), m_options->apiToken());
|
||||
m_httpd->start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue