mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
protocol: rename clearing to shutdown.
As per lightning-rfc e277023be40f0dcc7ff7e818cef1e0d23547cb8c. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -699,13 +699,13 @@ if [ -n "$CLOSE_WITH_HTLCS" ]; then
|
||||
lcli1 close $ID2
|
||||
|
||||
# They should be waiting for it to clear up.
|
||||
check_peerstate lcli1 STATE_CLEARING
|
||||
check_peerstate lcli2 STATE_CLEARING
|
||||
check_peerstate lcli1 STATE_SHUTDOWN
|
||||
check_peerstate lcli2 STATE_SHUTDOWN
|
||||
|
||||
# Fail one, still waiting.
|
||||
lcli2 failhtlc $ID1 $HTLCID
|
||||
check_peerstate lcli1 STATE_CLEARING
|
||||
check_peerstate lcli2 STATE_CLEARING
|
||||
check_peerstate lcli1 STATE_SHUTDOWN
|
||||
check_peerstate lcli2 STATE_SHUTDOWN
|
||||
|
||||
# Fulfill the other causes them to actually complete the close.
|
||||
lcli1 fulfillhtlc $ID2 $HTLCID2 $SECRET2
|
||||
|
||||
Reference in New Issue
Block a user