Search in sources :

Example 1 with StatusLogger

use of snowblossom.node.StatusLogger in project snowblossom by snowblossomcoin.

the class NodePanel method startNode.

private void startNode() throws Exception {
    // There are too many side effects to try this more than once
    start_attempt = true;
    TreeMap<String, String> config_map = new TreeMap();
    config_map.put("network", ice_leaf.getParams().getNetworkName());
    config_map.put("service_port", ice_leaf_prefs.get("node_service_port", null));
    config_map.put("tls_service_port", ice_leaf_prefs.get("node_tls_service_port", null));
    config_map.put("db_path", ice_leaf_prefs.get("node_db_path", null));
    config_map.put("db_type", "rocksdb");
    config_map.put("tls_key_path", ice_leaf_prefs.get("node_tls_key_path", null));
    config_map.put("tx_index", "" + ice_leaf_prefs.getBoolean("node_tx_index", true));
    config_map.put("addr_index", "" + ice_leaf_prefs.getBoolean("node_addr_index", true));
    setMessageBox(config_map.toString());
    ConfigMem config = new ConfigMem(config_map);
    node = new SnowBlossomNode(config, ImmutableList.of(new StatusLogger(), this));
    setStatusBox("Node started");
    setMessageBox("");
}
Also used : StatusLogger(snowblossom.node.StatusLogger) SnowBlossomNode(snowblossom.node.SnowBlossomNode) TreeMap(java.util.TreeMap) ConfigMem(duckutil.ConfigMem)

Aggregations

ConfigMem (duckutil.ConfigMem)1 TreeMap (java.util.TreeMap)1 SnowBlossomNode (snowblossom.node.SnowBlossomNode)1 StatusLogger (snowblossom.node.StatusLogger)1