Files
hpcore/src/sc/contract_serve.cpp
Savinda Senevirathne a4399544b9 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.
2021-02-05 11:48:52 +05:30

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