fix compilation issues on ubuntu

pull/74/head
moneroexamples 7 years ago
parent 31704ce8aa
commit 100b0bc9a5

@ -107,7 +107,6 @@ git clone https://github.com/monero-project/monero
cd monero/ cd monero/
make make
``` ```

@ -799,16 +799,6 @@ timestamps_time_scale(const vector<uint64_t>& timestamps,
return make_pair(empty_time, scale); return make_pair(empty_time, scale);
} }
// useful reference to get epoch time in correct timezon
// http://www.boost.org/doc/libs/1_41_0/doc/html/date_time/examples.html#date_time.examples.seconds_since_epoch
time_t
ptime_to_time_t(const pt::ptime& in_ptime)
{
static pt::ptime epoch(gt::date(1970, 1, 1));
pt::time_duration::sec_type no_seconds = (in_ptime - epoch).total_seconds();
return time_t(no_seconds);
}
bool bool
decode_ringct(const rct::rctSig& rv, decode_ringct(const rct::rctSig& rv,
const crypto::public_key &pub, const crypto::public_key &pub,

@ -21,7 +21,7 @@
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <boost/optional.hpp> #include <boost/optional.hpp>
#include <boost/date_time/posix_time/posix_time.hpp> #include <boost/algorithm/string.hpp>
#include <string> #include <string>
@ -42,9 +42,8 @@ using namespace crypto;
using namespace std; using namespace std;
namespace bf = boost::filesystem; namespace bf = boost::filesystem;
namespace pt = boost::posix_time; //namespace pt = boost::posix_time;
namespace gt = boost::gregorian; //namespace gt = boost::gregorian;
namespace lt = boost::local_time;
using json = nlohmann::json; using json = nlohmann::json;
@ -184,8 +183,6 @@ timestamps_time_scale(const vector<uint64_t>& timestamps,
uint64_t time0 = 1397818193 /* timestamp of the second block */); uint64_t time0 = 1397818193 /* timestamp of the second block */);
time_t
ptime_to_time_t(const pt::ptime& in_ptime);
bool bool
decode_ringct(const rct::rctSig & rv, decode_ringct(const rct::rctSig & rv,

Loading…
Cancel
Save