|
|
@ -39,22 +39,6 @@ int main(int ac, const char* av[]) {
|
|
|
|
|
|
|
|
|
|
|
|
path blockchain_path {"/home/mwo/.bitmonero/lmdb"};
|
|
|
|
path blockchain_path {"/home/mwo/.bitmonero/lmdb"};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// change timezone to Universtal time zone
|
|
|
|
|
|
|
|
// char old_tz[128];
|
|
|
|
|
|
|
|
// const char *tz_org = getenv("TZ");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (tz_org)
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// strcpy(old_tz, tz_org);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // set new timezone
|
|
|
|
|
|
|
|
// std::string tz = "TZ=Coordinated Universal Time";
|
|
|
|
|
|
|
|
// putenv(const_cast<char *>(tz.c_str()));
|
|
|
|
|
|
|
|
// tzset(); // Initialize timezone data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// enable basic monero log output
|
|
|
|
// enable basic monero log output
|
|
|
|
xmreg::enable_monero_log();
|
|
|
|
xmreg::enable_monero_log();
|
|
|
|
|
|
|
|
|
|
|
@ -103,12 +87,5 @@ int main(int ac, const char* av[]) {
|
|
|
|
// run the crow http server
|
|
|
|
// run the crow http server
|
|
|
|
app.port(app_port).multithreaded().run();
|
|
|
|
app.port(app_port).multithreaded().run();
|
|
|
|
|
|
|
|
|
|
|
|
// set timezone to orginal value
|
|
|
|
|
|
|
|
// if (tz_org != 0)
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// setenv("TZ", old_tz, 1);
|
|
|
|
|
|
|
|
// tzset();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|