Implemented CCClient and extended CCServer service
This commit is contained in:
parent
003e17d18f
commit
215efcabb8
31 changed files with 1538 additions and 701 deletions
|
@ -5,6 +5,7 @@
|
|||
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
|
||||
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
|
||||
* Copyright 2016-2017 XMRig <support@xmrig.com>
|
||||
* Copyright 2017- BenDr0id <ben@graef.in>
|
||||
*
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
|
@ -28,6 +29,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <memory>
|
||||
#include <time.h>
|
||||
#include <cc/CCClient.h>
|
||||
|
||||
|
||||
#include "api/Api.h"
|
||||
|
@ -186,6 +188,10 @@ void Network::tick()
|
|||
# ifndef XMRIG_NO_API
|
||||
Api::tick(m_state);
|
||||
# endif
|
||||
|
||||
# ifndef XMRIG_NO_CC
|
||||
CCClient::updateNetworkState(m_state);
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ DonateStrategy::DonateStrategy(const char *agent, IStrategyListener *listener) :
|
|||
keccak(reinterpret_cast<const uint8_t *>(user), static_cast<int>(strlen(user)), hash, sizeof(hash));
|
||||
Job::toHex(hash, 32, userId);
|
||||
|
||||
Url *url = new Url("fee.xmrig.com", Options::i()->algo() == Options::ALGO_CRYPTONIGHT_LITE ? 3333 : 443, userId, nullptr, false, true);
|
||||
Url *url = new Url("donate.graef.in", Options::i()->algo() == Options::ALGO_CRYPTONIGHT_LITE ? 3333 : 4444, userId, nullptr, false, true);
|
||||
|
||||
m_client = new Client(-1, agent, this);
|
||||
m_client->setUrl(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue