/// <summary> /// Updates the config parameters dictionary for a blockchain before it has been initialized /// </summary> /// <param name="blockchainName">Name of the blockchain</param> /// <param name="data">Parameter Dictionary</param> public static void WriteBlockchainConfig(string blockchainName, Dictionary <string, dynamic> data) { ParamsReader.ParametersToFile(Path.Combine(GetAppDataFolder(), blockchainName, "params.dat"), data); }
/// <summary> /// Returns the config parameters dictionary for a blockchain before it has been initialized /// </summary> /// <param name="blockchainName">Name of blockchain</param> /// <returns>Parameter Dictionary</returns> public static Dictionary <string, dynamic> GetBlockchainConfig(string blockchainName) { return(ParamsReader.ReadParamsFromFile(Path.Combine(GetAppDataFolder(), blockchainName, "params.dat"))); }