mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
lightningd: don't report original depth once splice started.
This is a workaround, the real fix is to use a different callback for inflight splice attempts, which comes later. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
58d27c4bdc
commit
328d685a2a
1 changed files with 3 additions and 0 deletions
|
@ -1585,6 +1585,9 @@ bool channel_tell_depth(struct lightningd *ld,
|
|||
|
||||
switch (channel->state) {
|
||||
case CHANNELD_AWAITING_SPLICE:
|
||||
/* Once we're waiting for splice, don't watch original any more */
|
||||
if (bitcoin_txid_eq(txid, &channel->funding.txid))
|
||||
return true;
|
||||
if (depth >= channel->minimum_depth) {
|
||||
if (!channel_splice_set_scid(channel, txid))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue