Exemple #1
0
        public ICoinConfig GetCoinConfig(string name)
        {
            var fileName = string.Format("{0}/{1}.json", CoinConfigRoot, name);
            var data     = _jsonConfigReader.Read(fileName);

            if (data == null) // make sure we were able to read the coin configuration file.
            {
                return(null);
            }

            var coinConfig = _configFactory.GetCoinConfig(data);

            return(coinConfig);
        }