bkpr: for zerconfs, we still wanna know you're opening a channel

We need a record of the channel account before you start sending
payments through it. Normally we don't start allowing payments to be
sent until after the channel has locked in but zeroconf does away with
this assumption.

Instead we push out a "channel_proposed" event, which should only show
up for zeroconfs.
This commit is contained in:
niftynei
2022-07-19 14:35:56 -05:00
committed by Rusty Russell
parent 1b5dc4409a
commit 30aa1d79fb
8 changed files with 94 additions and 26 deletions

View File

@@ -1219,6 +1219,7 @@ void maybe_update_account(struct db *db,
for (size_t i = 0; i < tal_count(tags); i++) {
switch (tags[i]) {
case CHANNEL_PROPOSED:
case CHANNEL_OPEN:
updated = true;
acct->open_event_db_id = tal(acct, u64);