Search in sources :

Example 1 with ConfigFile

use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.

the class SnowBlossomNode method main.

public static void main(String[] args) throws Exception {
    Globals.addCryptoProvider();
    if (args.length != 1) {
        logger.log(Level.SEVERE, "Incorrect syntax. Syntax: SnowBlossomNode <config_file>");
        System.exit(-1);
    }
    ConfigFile config = new ConfigFile(args[0], "snowblossom_");
    LogSetup.setup(config);
    // LogSetup.listLoggers();
    new SnowBlossomNode(config);
    while (true) {
        Thread.sleep(2500);
        LogSetup.fixLevels();
    // LogSetup.listLoggers();
    }
}
Also used : ConfigFile(duckutil.ConfigFile)

Example 2 with ConfigFile

use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.

the class RichList method main.

public static void main(String[] args) throws Exception {
    Globals.addCryptoProvider();
    if (args.length != 1) {
        logger.log(Level.SEVERE, "Incorrect syntax. Syntax: RichList <config_file>");
        System.exit(-1);
    }
    ConfigFile config = new ConfigFile(args[0], "snowblossom_");
    LogSetup.setup(config);
    new RichList(config).print(System.out);
}
Also used : ConfigFile(duckutil.ConfigFile)

Example 3 with ConfigFile

use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.

the class PoolMiner method main.

public static void main(String[] args) throws Exception {
    Globals.addCryptoProvider();
    if (args.length != 1) {
        logger.log(Level.SEVERE, "Incorrect syntax. Syntax: PoolMiner <config_file>");
        System.exit(-1);
    }
    ConfigFile config = new ConfigFile(args[0], "snowblossom_");
    LogSetup.setup(config);
    PoolMiner miner = new PoolMiner(config);
    while (true) {
        Thread.sleep(15000);
        miner.printStats();
    }
}
Also used : ConfigFile(duckutil.ConfigFile)

Example 4 with ConfigFile

use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.

the class Arktika method main.

public static void main(String[] args) throws Exception {
    Globals.addCryptoProvider();
    if (args.length != 1) {
        logger.log(Level.SEVERE, "Incorrect syntax. Syntax: Arktika <config_file>");
        System.exit(-1);
    }
    ConfigFile config = new ConfigFile(args[0], "snowblossom_");
    LogSetup.setup(config);
    Arktika miner = new Arktika(config);
    while (!miner.isTerminated()) {
        Thread.sleep(15000);
        miner.printStats();
    }
}
Also used : ConfigFile(duckutil.ConfigFile)

Example 5 with ConfigFile

use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.

the class SnowBlossomMiner method main.

public static void main(String[] args) throws Exception {
    Globals.addCryptoProvider();
    if (args.length != 1) {
        logger.log(Level.SEVERE, "Incorrect syntax. Syntax: SnowBlossomMiner <config_file>");
        System.exit(-1);
    }
    ConfigFile config = new ConfigFile(args[0], "snowblossom_");
    LogSetup.setup(config);
    SnowBlossomMiner miner = new SnowBlossomMiner(config);
    while (true) {
        Thread.sleep(45000);
        miner.printStats();
    }
}
Also used : ConfigFile(duckutil.ConfigFile)

Aggregations

ConfigFile (duckutil.ConfigFile)10 ByteString (com.google.protobuf.ByteString)1 JsonFormat (com.google.protobuf.util.JsonFormat)1 AtomicFileOutputStream (duckutil.AtomicFileOutputStream)1 Config (duckutil.Config)1 ConfigCat (duckutil.ConfigCat)1 ConfigMem (duckutil.ConfigMem)1 JsonRpcServer (duckutil.jsonrpc.JsonRpcServer)1 FileInputStream (java.io.FileInputStream)1 InputStreamReader (java.io.InputStreamReader)1 PrintStream (java.io.PrintStream)1 Reader (java.io.Reader)1 DecimalFormat (java.text.DecimalFormat)1 TreeMap (java.util.TreeMap)1 SnowBlossomClient (snowblossom.client.SnowBlossomClient)1