mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
txwatch: hand ld to callback, don't assume channel is non-NULL.
We're about to use the txwatch facility for UTXOs, where there's no channel, so allow that the be NULL, and hand the struct lightningd which callers want anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
5d23698665
commit
05f12edf60
@@ -508,12 +508,12 @@ send_error:
|
||||
peer_start_openingd(peer, &cs, peer_fd, gossip_fd, error);
|
||||
}
|
||||
|
||||
static enum watch_result funding_lockin_cb(struct channel *channel,
|
||||
static enum watch_result funding_lockin_cb(struct lightningd *ld,
|
||||
struct channel *channel,
|
||||
const struct bitcoin_txid *txid,
|
||||
unsigned int depth)
|
||||
{
|
||||
const char *txidstr;
|
||||
struct lightningd *ld = channel->peer->ld;
|
||||
|
||||
txidstr = type_to_string(channel, struct bitcoin_txid, txid);
|
||||
log_debug(channel->log, "Funding tx %s depth %u of %u",
|
||||
|
||||
Reference in New Issue
Block a user