peer_control: better logging when we don't tell peer about locked funding.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-01-25 21:33:40 +10:30 committed by Christian Decker
parent c42fa4404a
commit e9328217ff

View file

@ -1003,8 +1003,11 @@ static enum watch_result funding_announce_cb(struct peer *peer,
}
if (!peer->owner || !streq(peer->owner->name, "lightning_channeld")) {
log_debug(peer->ld->log,
"Funding tx announce ready, but peer is not owned by channeld");
log_debug(peer->log,
"Funding tx announce ready, but peer state %s"
" owned by %s",
peer_state_name(peer->state),
peer->owner ? peer->owner->name : "none");
return KEEP_WATCHING;
}