mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-18 13:09:08 +02:00
Remove comments from itest script and remove old itest config.ini file (#40)
This commit is contained in:
parent
6fe55699f4
commit
12263cb556
2 changed files with 1 additions and 40 deletions
|
|
@ -1,34 +0,0 @@
|
|||
#define parameters which are passed in.
|
||||
NETWORK=$1
|
||||
LND_RPC_HOST=$2
|
||||
LND_RPC_PORT=$3
|
||||
SQK_RPC_HOST=$4
|
||||
SQK_RPC_PORT=$5
|
||||
|
||||
#define the template.
|
||||
cat << EOF
|
||||
|
||||
[DEFAULT]
|
||||
network=$NETWORK
|
||||
|
||||
[lnd]
|
||||
rpc_host=$LND_RPC_HOST
|
||||
rpc_port=$LND_RPC_PORT
|
||||
|
||||
[electrum]
|
||||
rpc_host=
|
||||
rpc_port=
|
||||
rpc_user=
|
||||
rpc_pass=
|
||||
|
||||
[server]
|
||||
rpc_host=$SQK_RPC_HOST
|
||||
rpc_port=$SQK_RPC_PORT
|
||||
|
||||
[postgresql]
|
||||
host=db
|
||||
database=squeakserver
|
||||
user=postgres
|
||||
password=postgres
|
||||
|
||||
EOF
|
||||
|
|
@ -178,10 +178,7 @@ def run():
|
|||
assert buy_response.offer.payment_request.startswith('ln')
|
||||
|
||||
# Connect to the server lightning node
|
||||
# lightning_host_port = buy_response.offer.host + ':' + buy_response.offer.port
|
||||
lightning_host_port = buy_response.offer.host
|
||||
# connect_peer_response = lnd_lightning_client.connect_peer(buy_response.offer.pubkey, 'lnd_sqkserver')
|
||||
connect_peer_response = lnd_lightning_client.connect_peer(buy_response.offer.pubkey, lightning_host_port)
|
||||
connect_peer_response = lnd_lightning_client.connect_peer(buy_response.offer.pubkey, buy_response.offer.host)
|
||||
print("Server connect peer response: " + str(connect_peer_response))
|
||||
|
||||
# List peers
|
||||
|
|
@ -189,7 +186,6 @@ def run():
|
|||
print("Server list peers response: " + str(list_peers_response))
|
||||
|
||||
# Open channel to the server lightning node
|
||||
# pubkey_bytes = bytes.fromhex(buy_response.offer.pubkey)
|
||||
open_channel_response = lnd_lightning_client.open_channel_sync(buy_response.offer.pubkey, 1000000)
|
||||
print("Server open channel response: " + str(open_channel_response))
|
||||
|
||||
|
|
@ -205,7 +201,6 @@ def run():
|
|||
print("Server list channels response: " + str(list_channels_response))
|
||||
|
||||
# Pay the invoice
|
||||
preimage = None
|
||||
payment = lnd_lightning_client.pay_invoice_sync(buy_response.offer.payment_request)
|
||||
print("Server pay invoice response: " + str(payment))
|
||||
preimage = payment.payment_preimage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue