blob: 803ea12fbafdda68caabaaecedd32f32b4efad1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2012-2013 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include "net/http_client.h"
#include "cryptonote_protocol/blobdatatype.h"
#include "simpleminer_protocol_defs.h"
namespace mining
{
class simpleminer
{
public:
static void init_options(boost::program_options::options_description& desc);
bool init(const boost::program_options::variables_map& vm);
bool run();
private:
struct job_details_native
{
cryptonote::blobdata blob;
uint32_t target;
std::string job_id;
};
static bool text_job_details_to_native_job_details(const job_details& job, job_details_native& native_details);
std::string m_pool_ip;
std::string m_pool_port;
std::string m_login;
std::string m_pass;
epee::net_utils::http::http_simple_client m_http_client;
};
}
|