diff --git a/src/services/main/adminManager.ts b/src/services/main/adminManager.ts index dc0d3f22..9cd47f26 100644 --- a/src/services/main/adminManager.ts +++ b/src/services/main/adminManager.ts @@ -180,7 +180,7 @@ export class AdminManager { async UpdateChannelPolicy(req: Types.UpdateChannelPolicyRequest): Promise { const chanPoint = req.update.type === Types.UpdateChannelPolicyRequest_update_type.CHANNEL_POINT ? req.update.channel_point : "" const res = await this.lnd.UpdateChannelPolicy(chanPoint, req.policy) - if (res.failedUpdates) { + if (res.failedUpdates.length > 0) { this.log(ERROR, "failed to update policy", res.failedUpdates) throw new Error("failed to update policy") }