mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-07 06:19:27 +01:00
7aaffda779
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>
27 lines
430 B
Bash
Executable File
27 lines
430 B
Bash
Executable File
#! /bin/sh -e
|
|
|
|
# Wherever we are, we want to be in daemon/test dir.
|
|
cd `git rev-parse --show-toplevel`/daemon/test
|
|
|
|
. scripts/vars.sh
|
|
. scripts/helpers.sh
|
|
|
|
parse_cmdline 2 "$@"
|
|
setup_lightning 2
|
|
|
|
start_lightningd 2 lightningd/lightningd
|
|
|
|
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.
|
|
|
|
lcli1 stop
|
|
lcli2 stop
|
|
|
|
all_ok
|