mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user