From 92fe8157eba4ef3e001e57ece39369902bf58911 Mon Sep 17 00:00:00 2001 From: Cavan Date: Fri, 12 Jul 2019 10:35:16 -0600 Subject: [PATCH] Remove old Buffer conversion --- lib/lnrpc.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/lnrpc.js b/lib/lnrpc.js index 160d576..0bfdc0b 100644 --- a/lib/lnrpc.js +++ b/lib/lnrpc.js @@ -56,9 +56,7 @@ module.exports = async function createLnRpc(config = {}) { macaroonPath, } = Object.assign({}, DEFAULTS, config); - /* - Generate grpc SSL credentials - */ + // Generate grpc SSL credentials let credentials; try { @@ -75,13 +73,6 @@ module.exports = async function createLnRpc(config = {}) { cert = Buffer.from(cert, certEncoding); } - /* - Convert `cert` string to Buffer - */ - if (!Buffer.isBuffer(cert)) { - cert = Buffer.from(cert); - } - /* Required for lnd SSL handshake: (SSL_ERROR_SSL: error:14094410) More about GRPC environment variables here: