mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +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
@ -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…
Reference in New Issue
Block a user