1
0

fix privkey in request_force_close_from_backup

This commit is contained in:
ThomasV
2021-03-29 17:35:04 +02:00
parent f9ae47eb99
commit f06433e435
2 changed files with 6 additions and 1 deletions

View File

@@ -137,10 +137,12 @@ if [[ $1 == "backup" ]]; then
wait_for_balance alice 1
echo "alice opens channel"
bob_node=$($bob nodeid)
$alice setconfig use_recoverable_channels False
channel=$($alice open_channel $bob_node 0.15)
echo "channel point: $channel"
new_blocks 3
wait_until_channel_open alice
backup=$($alice export_channel_backup $channel)
request=$($bob add_lightning_request 0.01 -m "blah" | jq -r ".invoice")
echo "alice pays"
$alice lnpay $request
@@ -150,6 +152,7 @@ if [[ $1 == "backup" ]]; then
$alice -o restore "$seed"
$alice daemon -d
$alice load_wallet
$alice import_channel_backup $backup
$alice request_force_close $channel
wait_for_balance alice 0.989
fi