mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
- 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.
14 lines
484 B
C++
14 lines
484 B
C++
|
|
#include "./contract_serve.hpp"
|
|
|
|
namespace sc
|
|
{
|
|
void contract_serve::swap_collected_requests()
|
|
{
|
|
std::scoped_lock<std::mutex> lock(p2p::ctx.collected_msgs.contract_hpfs_requests_mutex);
|
|
|
|
// Move collected hpfs requests for contract fs over to local requests list.
|
|
if (!p2p::ctx.collected_msgs.contract_hpfs_requests.empty())
|
|
hpfs_requests.splice(hpfs_requests.end(), p2p::ctx.collected_msgs.contract_hpfs_requests);
|
|
}
|
|
} // namespace sc
|