From 5de6a3cf125e48c1d4a2c7ec9dbcf7fe539b0dc5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 23 Feb 2018 20:10:50 +1030 Subject: [PATCH] fixup! onchain message should be ONCHAIN: not FUNDING_SPEND_SEEN --- onchaind/onchain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onchaind/onchain.c b/onchaind/onchain.c index 736e388ae..c95d49480 100644 --- a/onchaind/onchain.c +++ b/onchaind/onchain.c @@ -1053,8 +1053,9 @@ static void wait_for_resolved(struct tracked_output **outs) static void init_reply(const char *what) { - peer_billboard(true, what); + /* Send init_reply first, so billboard gets credited to ONCHAIND */ wire_sync_write(REQ_FD, take(towire_onchain_init_reply(NULL))); + peer_billboard(true, what); } static void handle_mutual_close(const struct bitcoin_txid *txid,