mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Merge pull request #1965 from NicolasDorier/walletsend
Fix: 1 DOGE "absurdly high" fee was trapping DOGE.
This commit is contained in:
commit
45fbe6972b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user