Merge pull request #1965 from NicolasDorier/walletsend

Fix: 1 DOGE "absurdly high" fee was trapping DOGE.
This commit is contained in:
Nicolas Dorier 2020-10-08 16:38:08 +09:00 committed by GitHub
commit 45fbe6972b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)