From eef729b5f9c0c78ba641a9aafb51c8fe2344ed5c Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Fri, 6 Nov 2020 16:52:58 +0100 Subject: [PATCH] API: Fix open channel validation condition (#2054) --- .../Controllers/GreenField/LightningNodeApiController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/GreenField/LightningNodeApiController.cs b/BTCPayServer/Controllers/GreenField/LightningNodeApiController.cs index 5e10b25ab..d8eb1079b 100644 --- a/BTCPayServer/Controllers/GreenField/LightningNodeApiController.cs +++ b/BTCPayServer/Controllers/GreenField/LightningNodeApiController.cs @@ -139,7 +139,7 @@ namespace BTCPayServer.Controllers.GreenField ModelState.AddModelError(nameof(request.FeeRate), "FeeRate must be more than 0"); } - if (ModelState.IsValid) + if (!ModelState.IsValid) { return this.CreateValidationError(ModelState); }