mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
hsmd: take dbid for client.
We need this later, to generate its seed. When we switch to lnd's key system, we'll only need this, and not peerid. Note also that the peerid is not just for messages any more, too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
64008e275a
commit
f9e5dc7ee8
@@ -193,7 +193,9 @@ bool peer_start_channeld(struct channel *channel,
|
||||
const struct config *cfg = &ld->config;
|
||||
bool reached_announce_depth;
|
||||
|
||||
msg = towire_hsm_client_hsmfd(tmpctx, &channel->peer->id, HSM_CAP_SIGN_GOSSIP | HSM_CAP_ECDH);
|
||||
msg = towire_hsm_client_hsmfd(tmpctx, &channel->peer->id,
|
||||
channel->dbid,
|
||||
HSM_CAP_SIGN_GOSSIP | HSM_CAP_ECDH);
|
||||
if (!wire_sync_write(ld->hsm_fd, take(msg)))
|
||||
fatal("Could not write to HSM: %s", strerror(errno));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user