mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Integrated ptrace tracking for state files.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user