1
0

lnpeer: modern fee negotiation

Updates the closing fee negotiation to comply with most recent spec
changes, see https://github.com/lightning/bolts/pull/847
The closing negotiation is backwards compatible with the old
negotiation.
This commit is contained in:
bitromortac
2021-11-26 09:45:06 +01:00
committed by ThomasV
parent 95f42df0ac
commit ec740d45f1
3 changed files with 152 additions and 17 deletions

View File

@@ -158,6 +158,18 @@ if [[ $1 == "backup" ]]; then
fi
if [[ $1 == "collaborative_close" ]]; then
wait_for_balance alice 1
echo "alice opens channel"
bob_node=$($bob nodeid)
channel=$($alice open_channel $bob_node 0.15)
new_blocks 3
wait_until_channel_open alice
echo "alice closes channel"
request=$($bob close_channel $channel)
fi
if [[ $1 == "extract_preimage" ]]; then
# instead of settling bob will broadcast
$bob enable_htlc_settle false