lightningd/lightningd: finish connect command once gossip started.

This is after the INIT message is received, so we know there are no
incompatible features.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-01-10 15:38:33 +10:30
parent c536616bee
commit 7aaffda779
4 changed files with 28 additions and 6 deletions

View File

@@ -11,8 +11,12 @@ setup_lightning 2
start_lightningd 2 lightningd/lightningd
# FIXME: Try to connect.
# lcli1 connect localhost $PORT2 $ID2
if lcli1 connect localhost $PORT2 $ID1; then
echo Connected OK with wrong ID? >&2
exit 1
fi
lcli1 connect localhost $PORT2 $ID2
# FIXME: Check status.