lightningd: cancel watching original funding when we switch to the new one via splice.
This happens if the channel is *not* announcable yet. Then we hit the assertion in funding_depth_cb that the txid is the same as the current funding.txid. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-EXPERIMENTAL: fixed crash when we splice a channel which hasn't been announced yet.
This commit is contained in:
@@ -243,6 +243,16 @@ void fatal(const char *fmt UNNEEDED, ...)
|
||||
/* Generated stub for fatal_vfmt */
|
||||
void fatal_vfmt(const char *fmt UNNEEDED, va_list ap UNNEEDED)
|
||||
{ fprintf(stderr, "fatal_vfmt called!\n"); abort(); }
|
||||
/* Generated stub for find_txwatch_ */
|
||||
struct txwatch *find_txwatch_(struct chain_topology *topo UNNEEDED,
|
||||
const struct bitcoin_txid *txid UNNEEDED,
|
||||
enum watch_result (*cb)(struct lightningd *ld UNNEEDED,
|
||||
const struct bitcoin_txid * UNNEEDED,
|
||||
const struct bitcoin_tx * UNNEEDED,
|
||||
unsigned int depth UNNEEDED,
|
||||
void *arg) UNNEEDED,
|
||||
void *arg UNNEEDED)
|
||||
{ fprintf(stderr, "find_txwatch_ called!\n"); abort(); }
|
||||
/* Generated stub for force_peer_disconnect */
|
||||
void force_peer_disconnect(struct lightningd *ld UNNEEDED,
|
||||
const struct peer *peer UNNEEDED,
|
||||
|
||||
Reference in New Issue
Block a user