connectd: do feature bits check after init exchange.

This will help with the next patch, where we wean off using a global
for features: connectd.c has access to the feature bits.

Since connectd might now want to send a message, it needs the crypto_state
non-const, which makes this less trivial than it would otherwise be.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-04-02 14:33:47 +10:30
parent 7c0af81c21
commit 15f54878e4
8 changed files with 36 additions and 36 deletions

View File

@@ -142,7 +142,7 @@ static struct io_plan *simple_read(struct io_conn *conn,
static struct io_plan *handshake_success(struct io_conn *conn,
const struct pubkey *them,
const struct wireaddr_internal *addr,
const struct crypto_state *orig_cs,
struct crypto_state *orig_cs,
char **args)
{
u8 *msg;