mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
lightningd: single transient billboard for opening peers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
86a04c59d4
commit
db4de95033
1 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,9 @@ struct uncommitted_channel {
|
|||
/* For logging */
|
||||
struct log *log;
|
||||
|
||||
/* Openingd can tell us stuff. */
|
||||
const char *transient_billboard;
|
||||
|
||||
/* If we offered channel, this contains information, otherwise NULL */
|
||||
struct funding_channel *fc;
|
||||
|
||||
|
@ -173,7 +176,7 @@ wallet_commit_channel(struct lightningd *ld,
|
|||
CHANNELD_AWAITING_LOCKIN,
|
||||
uc->fc ? LOCAL : REMOTE,
|
||||
uc->log,
|
||||
"Eat at Joes!",
|
||||
take(uc->transient_billboard),
|
||||
channel_flags,
|
||||
&uc->our_config,
|
||||
uc->minimum_depth,
|
||||
|
@ -512,6 +515,7 @@ new_uncommitted_channel(struct lightningd *ld,
|
|||
if (peer_active_channel(uc->peer))
|
||||
return tal_free(uc);
|
||||
|
||||
uc->transient_billboard = NULL;
|
||||
uc->dbid = wallet_get_channel_dbid(ld->wallet);
|
||||
|
||||
idname = type_to_string(uc, struct pubkey, &uc->peer->id);
|
||||
|
|
Loading…
Add table
Reference in a new issue