Browse Source

deactivate future code

master
Christian Rotzoll 6 years ago
parent
commit
defd953d8c
  1. 28
      home.admin/config.scripts/lnd.initwallet.py

28
home.admin/config.scripts/lnd.initwallet.py

@ -30,17 +30,17 @@ else:
print("TODO: Implement") print("TODO: Implement")
sys.exit(1) sys.exit(1)
os.environ['GRPC_SSL_CIPHER_SUITES'] = 'HIGH+ECDSA' #os.environ['GRPC_SSL_CIPHER_SUITES'] = 'HIGH+ECDSA'
cert = open('/mnt/hdd/lnd/tls.cert', 'rb').read() #cert = open('/mnt/hdd/lnd/tls.cert', 'rb').read()
ssl_creds = grpc.ssl_channel_credentials(cert) #ssl_creds = grpc.ssl_channel_credentials(cert)
channel = grpc.secure_channel('localhost:10009', ssl_creds) #channel = grpc.secure_channel('localhost:10009', ssl_creds)
stub = lnrpc.WalletUnlockerStub(channel) #stub = lnrpc.WalletUnlockerStub(channel)
request = ln.InitWalletRequest( #request = ln.InitWalletRequest(
wallet_password=base64.b64encode(sys.argv[1]).decode(), # wallet_password=base64.b64encode(sys.argv[1]).decode(),
cipher_seed_mnemonic=<array string>, # cipher_seed_mnemonic=<array string>,
aezeed_passphrase=<bytes>, # aezeed_passphrase=<bytes>,
recovery_window=<int32>, # recovery_window=<int32>,
channel_backups=<ChanBackupSnapshot>, # channel_backups=<ChanBackupSnapshot>,
) # )
response = stub.InitWallet(request) #response = stub.InitWallet(request)
print(response) #print(response)

Loading…
Cancel
Save