hsm: remove unique_id.

It was only for error messages, so replace it with pubkey.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-10-23 00:02:46 +10:30
committed by Christian Decker
parent c3bed51b2d
commit ffaa15c7da
5 changed files with 22 additions and 18 deletions

View File

@@ -2021,7 +2021,7 @@ static bool peer_start_channeld(struct peer *peer,
} else
assert(peer->our_msatoshi);
msg = towire_hsmctl_hsmfd_channeld(tmpctx, peer->unique_id);
msg = towire_hsmctl_hsmfd_channeld(tmpctx, &peer->id);
if (!wire_sync_write(peer->ld->hsm_fd, take(msg)))
fatal("Could not write to HSM: %s", strerror(errno));