use of io.nuls.network.service.NetworkService in project nuls by nuls-io.
the class NetworkModuleBootstrap method init.
@Override
public void init() {
this.registerEvent();
try {
NetworkContext.setNetworkConfig(ConfigLoader.loadProperties(NetworkConstant.NETWORK_PROPERTIES));
} catch (IOException e) {
Log.error(e);
throw new NulsRuntimeException(ErrorCode.IO_ERROR);
}
this.registerService(NetworkServiceImpl.class);
networkService = NulsContext.getServiceBean(NetworkService.class);
}
Aggregations