Integrated ptrace tracking for state files.

This commit is contained in:
ravinsp
2019-11-09 07:38:10 +05:30
parent 7815390b25
commit 32ef41bfdf
10 changed files with 2122 additions and 52 deletions

View File

@@ -6,7 +6,7 @@
#include "util.hpp"
#include "conf.hpp"
#include "crypto.hpp"
#include "proc.hpp"
#include "proc/proc.hpp"
#include "hplog.hpp"
#include "usr/usr.hpp"
#include "p2p/p2p.hpp"
@@ -157,6 +157,9 @@ int main(int argc, char **argv)
if (conf::init() != 0)
return -1;
// Set HP process cwd to the contract directory.
chdir(conf::ctx.contractDir.c_str());
hplog::init();
if (p2p::init() != 0 || usr::init() != 0 || cons::init() != 0)
@@ -166,7 +169,7 @@ int main(int argc, char **argv)
signal(SIGINT, signal_handler);
//we are waiting for peer to estasblish peer connections.
//otherwise we'll run into not enough peers propsing/stage desync deadlock directly now.
//otherwise we'll run into not enough peers propsing/stage desync deadlock directly now.
sleep(3);
while (true)
@@ -183,4 +186,3 @@ int main(int argc, char **argv)
std::cout << "exited normally\n";
return 0;
}