Skip to content

Commit

Permalink
Remove old Buffer conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
cavanmflynn committed Jul 12, 2019
1 parent a3b7a85 commit 92fe815
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/lnrpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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:
Expand Down

0 comments on commit 92fe815

Please sign in to comment.