mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-10-31 09:20:27 +00:00
ffac7fabed
Payments Incomplete
24 lines
494 B
JavaScript
24 lines
494 B
JavaScript
var fs = require('fs');
|
|
var common = require('./common');
|
|
var clArgs = require('optimist').argv;
|
|
|
|
if(undefined !== clArgs.lndir) {
|
|
common.lnd_dir = clArgs.lndir;
|
|
} else {
|
|
if(common.lnd_dir === '') {
|
|
common.lnd_dir = __dirname;
|
|
}
|
|
}
|
|
|
|
var macaroon = fs.readFileSync(common.lnd_dir + '/admin.macaroon').toString('hex');
|
|
var options = {
|
|
url: '',
|
|
rejectUnauthorized: false,
|
|
json: true,
|
|
headers: {
|
|
'Grpc-Metadata-macaroon': macaroon,
|
|
},
|
|
form: ''
|
|
};
|
|
|
|
module.exports = options; |