deactivate future code

This commit is contained in:
Christian Rotzoll
2019-04-12 01:20:19 +01:00
parent 129e18f4b1
commit defd953d8c

View File

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