mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Do not check feerate in walletsend model
This commit is contained in:
@@ -641,17 +641,6 @@ namespace BTCPayServer.Controllers
|
|||||||
vm.AddModelError(model => model.FeeSatoshiPerByte,
|
vm.AddModelError(model => model.FeeSatoshiPerByte,
|
||||||
"The fee rate should be above 0", this);
|
"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)
|
if (!ModelState.IsValid)
|
||||||
|
|||||||
Reference in New Issue
Block a user