Beispiel #1
0
        public static Settings GetDefault(NetworkType network)
        {
            var res = new Settings();

            res.Chain    = BlockchainSettings.GetDefault(network);
            res.Database = DatabaseSettings.GetDefault(network);
            res.Network  = NetworkSettings.GetDefault(network);
            res.Node     = NodeSettings.GetDefault(network);
            return(res);
        }
Beispiel #2
0
        public static Settings GetDefault(NetworkType network)
        {
            var res = new Settings();

            res.Chain    = BlockchainSettings.GetDefault(network);
            res.Database = DatabaseSettings.GetDefault(network);
            res.Network  = NetworkSettings.GetDefault(network);
            res.Node     = NodeSettings.GetDefault(network);

            //TODO(fernando): remove this in c-api version > 0.6.0. It is a workaround.
            res.Network.Services         = 1;
            res.Network.HostPoolCapacity = 1000;
            return(res);
        }