use of duckutil.ConfigCat in project snowblossom by snowblossomcoin.
the class WalletPanel method loadWallet.
private SnowBlossomClient loadWallet(String name, File db_dir, File config_file) throws Exception {
synchronized (client_map) {
if (client_map.containsKey(name))
return client_map.get(name);
}
TreeMap<String, String> config_map = new TreeMap<>();
config_map.put("wallet_path", db_dir.getPath());
config_map.put("network", ice_leaf.getParams().getNetworkName());
Config conf = new ConfigCat(new ConfigMem(config_map), new ConfigFile(config_file.getPath()));
SnowBlossomClient client = new SnowBlossomClient(conf, null, ice_leaf.getStubHolder());
synchronized (client_map) {
client_map.put(name, client);
}
return client;
}
Aggregations