Remove ability to set custom cache, fix coinaverage not really using coinaverage

This commit is contained in:
nicolas.dorier
2020-01-17 14:16:12 +09:00
parent 9739f3fb25
commit 7d545ca682
9 changed files with 34 additions and 43 deletions

View File

@@ -91,7 +91,6 @@ namespace BTCPayServer.Controllers
var vm = new RatesViewModel()
{
CacheMinutes = rates.CacheInMinutes,
PrivateKey = rates.PrivateKey,
PublicKey = rates.PublicKey
};
@@ -119,7 +118,6 @@ namespace BTCPayServer.Controllers
var rates = (await _SettingsRepository.GetSettingAsync<RatesSetting>()) ?? new RatesSetting();
rates.PrivateKey = vm.PrivateKey;
rates.PublicKey = vm.PublicKey;
rates.CacheInMinutes = vm.CacheMinutes;
try
{
var service = GetCoinaverageService(vm, true);