File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ interface LndClient {
36
36
37
37
const MAXFEE = 0.03 ;
38
38
const BASE_MAX_CLIENT_WAIT_TIME = 6000 ;
39
+ const GRPC_CLIENT_OPTIONS = {
40
+ 'grpc.ssl_target_name_override' : 'localhost' ,
41
+ 'grpc.default_authority' : 'localhost' ,
42
+ } ;
39
43
40
44
/** A class representing a client to interact with lnd. */
41
45
class LndClient extends SwapClient {
@@ -207,7 +211,7 @@ class LndClient extends SwapClient {
207
211
/** Lnd specific procedure to mark the client as locked. */
208
212
private lock = ( ) => {
209
213
if ( ! this . walletUnlocker ) {
210
- this . walletUnlocker = new WalletUnlockerClient ( this . uri , this . credentials ) ;
214
+ this . walletUnlocker = new WalletUnlockerClient ( this . uri , this . credentials , GRPC_CLIENT_OPTIONS ) ;
211
215
}
212
216
if ( this . lightning ) {
213
217
this . lightning . close ( ) ;
@@ -466,7 +470,7 @@ class LndClient extends SwapClient {
466
470
}
467
471
468
472
this . logger . info ( `trying to verify connection to lnd at ${ this . uri } ` ) ;
469
- this . lightning = new LightningClient ( this . uri , this . credentials ) ;
473
+ this . lightning = new LightningClient ( this . uri , this . credentials , GRPC_CLIENT_OPTIONS ) ;
470
474
471
475
try {
472
476
await this . waitForClientReady ( this . lightning ) ;
You can’t perform that action at this time.
0 commit comments