From c262132a2fadb8e6a4e4e76ac9af164e2e606ff1 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 8 Oct 2020 16:33:48 +0900 Subject: [PATCH] Do not check feerate in walletsend model --- BTCPayServer/Controllers/WalletsController.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/BTCPayServer/Controllers/WalletsController.cs b/BTCPayServer/Controllers/WalletsController.cs index 721597a6f..4382ba6e8 100644 --- a/BTCPayServer/Controllers/WalletsController.cs +++ b/BTCPayServer/Controllers/WalletsController.cs @@ -641,17 +641,6 @@ namespace BTCPayServer.Controllers vm.AddModelError(model => model.FeeSatoshiPerByte, "The fee rate should be above 0", this); } - if (fee > 5_000m) - { - vm.AddModelError(model => model.FeeSatoshiPerByte, - "The fee rate is absurdly high", this); - } - if (_dashboard.Get(network.CryptoCode).Status?.BitcoinStatus?.MinRelayTxFee?.SatoshiPerByte is decimal minFee) - { - if (vm.FeeSatoshiPerByte < minFee) - vm.AddModelError(model => model.FeeSatoshiPerByte, - $"The fee rate is lower than the minimum relay fee ({vm.FeeSatoshiPerByte} < {minFee})", this); - } } if (!ModelState.IsValid)