From 7004ea0dfef10ba4ef6904622f103880557eff6f Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 26 Oct 2021 16:39:19 +0200 Subject: [PATCH] fix condition --- packages/health-check/src/checks/critical.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/src/checks/critical.js b/packages/health-check/src/checks/critical.js index 94aef448..c3fbf74d 100644 --- a/packages/health-check/src/checks/critical.js +++ b/packages/health-check/src/checks/critical.js @@ -16,7 +16,7 @@ async function skydConfigCheck(done) { const response = await got(`http://10.10.10.10:9980/renter`, { headers: { "User-Agent": "Sia-Agent" } }).json(); // make sure initial funding is set to a non zero value - if (BigInt(response.settings.allowance.paymentcontractinitialfunding) > 0) { + if (BigInt(response.settings.allowance.paymentcontractinitialfunding) === 0) { throw new Error("Skynet Portal Per-Contract Budget is not set!"); }