mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Separate contract and ledger file system mounts. (#235)
- Creating two separate hpfs folders for contract and ledger file systems (contract_fs and ledger_fs). - Added separate mounts for contract and ledger file systems. - Added separate instances for contract serving and ledger serving. - Added separate instances for contract syncing and ledger syncing. - Modified cluster creating script to accompany folder name changes in contract folder.
This commit is contained in:
committed by
GitHub
parent
ae55a6ea5a
commit
a4399544b9
10
src/main.cpp
10
src/main.cpp
@@ -6,14 +6,14 @@
|
||||
#include "util/util.hpp"
|
||||
#include "conf.hpp"
|
||||
#include "crypto.hpp"
|
||||
#include "sc.hpp"
|
||||
#include "./sc/sc.hpp"
|
||||
#include "hplog.hpp"
|
||||
#include "usr/usr.hpp"
|
||||
#include "usr/read_req.hpp"
|
||||
#include "p2p/p2p.hpp"
|
||||
#include "consensus.hpp"
|
||||
#include "ledger.hpp"
|
||||
#include "hpfs/hpfs.hpp"
|
||||
#include "ledger/ledger_sample.hpp"
|
||||
#include "unl.hpp"
|
||||
|
||||
/**
|
||||
@@ -71,7 +71,8 @@ void deinit()
|
||||
p2p::deinit();
|
||||
read_req::deinit();
|
||||
consensus::deinit();
|
||||
hpfs::deinit();
|
||||
ledger::ledger_sample::deinit(); // Deinit method in new ledger implementation.
|
||||
sc::deinit();
|
||||
ledger::deinit();
|
||||
conf::deinit();
|
||||
}
|
||||
@@ -195,7 +196,8 @@ int main(int argc, char **argv)
|
||||
LOG_INFO << "Public key: " << conf::cfg.node.public_key_hex;
|
||||
LOG_INFO << "Contract: " << conf::cfg.contract.id << " (" << conf::cfg.contract.version << ")";
|
||||
|
||||
if (hpfs::init() == -1 ||
|
||||
if (sc::init() == -1 ||
|
||||
ledger::ledger_sample::init() == -1 || // Init method of new ledger implementaiton.
|
||||
ledger::init() == -1 ||
|
||||
unl::init() == -1 ||
|
||||
consensus::init() == -1 ||
|
||||
|
||||
Reference in New Issue
Block a user