2222#include " ppc-framework/protocol/Constant.h"
2323#include " ppc-mpc/src/MPCService.h"
2424#include " ppc-tools/src/config/PPCConfig.h"
25+ #include " wedpr-helper/ppc-utilities/Utilities.h"
2526#include " wedpr-protocol/protocol/src/ServiceConfig.h"
2627#include " wedpr-transport/sdk/src/TransportBuilder.h"
2728
@@ -61,7 +62,7 @@ void MPCInitializer::init(std::string const& _configPath)
6162 auto threadPool = std::make_shared<bcos::ThreadPool>(" mpc-pool" , threadPoolSize);
6263
6364 INIT_LOG (INFO) << LOG_DESC (" init the mpc threadpool" )
64- << LOG_KV (" threadPoolSize" , threadPoolSize);
65+ << LOG_KV (" threadPoolSize" , threadPoolSize);
6566
6667 auto mpcService = std::make_shared<MPCService>();
6768 mpcService->setMPCConfig (mpcConfig);
@@ -71,11 +72,11 @@ void MPCInitializer::init(std::string const& _configPath)
7172 m_rpc->registerHandler (" run" , std::bind (&MPCService::runMpcRpc, mpcService,
7273 std::placeholders::_1, std::placeholders::_2));
7374 m_rpc->registerHandler (" asyncRun" , std::bind (&MPCService::asyncRunMpcRpc, mpcService,
74- std::placeholders::_1, std::placeholders::_2));
75+ std::placeholders::_1, std::placeholders::_2));
7576 m_rpc->registerHandler (" kill" , std::bind (&MPCService::killMpcRpc, mpcService,
7677 std::placeholders::_1, std::placeholders::_2));
7778 m_rpc->registerHandler (" query" , std::bind (&MPCService::queryMpcRpc, mpcService,
78- std::placeholders::_1, std::placeholders::_2));
79+ std::placeholders::_1, std::placeholders::_2));
7980 INIT_LOG (INFO) << LOG_DESC (" init the mpc rpc success" );
8081 // init the transport
8182 initTransport (pt);
@@ -89,8 +90,8 @@ void MPCInitializer::initTransport(boost::property_tree::ptree const& property)
8990
9091 // add the service meta
9192 ServiceConfigBuilder serviceConfigBuilder;
92- auto entryPoint =
93- serviceConfigBuilder. buildEntryPoint ( MPC_SERVICE_TYPE, m_config->accessEntrypoint ());
93+ auto entryPoint = serviceConfigBuilder. buildEntryPoint (
94+ getServiceName (m_config-> agencyID (), MPC_SERVICE_TYPE) , m_config->accessEntrypoint ());
9495 auto serviceConfig = serviceConfigBuilder.buildServiceConfig ();
9596 serviceConfig.addEntryPoint (entryPoint);
9697 auto serviceMeta = serviceConfig.encode ();
0 commit comments