Browse Source

lightningd: single transient billboard for opening peers.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
db4de95033
  1. 6
      lightningd/opening_control.c

6
lightningd/opening_control.c

@ -36,6 +36,9 @@ struct uncommitted_channel {
/* For logging */ /* For logging */
struct log *log; struct log *log;
/* Openingd can tell us stuff. */
const char *transient_billboard;
/* If we offered channel, this contains information, otherwise NULL */ /* If we offered channel, this contains information, otherwise NULL */
struct funding_channel *fc; struct funding_channel *fc;
@ -173,7 +176,7 @@ wallet_commit_channel(struct lightningd *ld,
CHANNELD_AWAITING_LOCKIN, CHANNELD_AWAITING_LOCKIN,
uc->fc ? LOCAL : REMOTE, uc->fc ? LOCAL : REMOTE,
uc->log, uc->log,
"Eat at Joes!", take(uc->transient_billboard),
channel_flags, channel_flags,
&uc->our_config, &uc->our_config,
uc->minimum_depth, uc->minimum_depth,
@ -512,6 +515,7 @@ new_uncommitted_channel(struct lightningd *ld,
if (peer_active_channel(uc->peer)) if (peer_active_channel(uc->peer))
return tal_free(uc); return tal_free(uc);
uc->transient_billboard = NULL;
uc->dbid = wallet_get_channel_dbid(ld->wallet); uc->dbid = wallet_get_channel_dbid(ld->wallet);
idname = type_to_string(uc, struct pubkey, &uc->peer->id); idname = type_to_string(uc, struct pubkey, &uc->peer->id);

Loading…
Cancel
Save