|
|
@ -574,6 +574,7 @@ static struct io_plan *init_hsm(struct io_conn *conn, |
|
|
|
struct secret *seed; |
|
|
|
struct secrets *secrets; |
|
|
|
struct sha256 *shaseed; |
|
|
|
struct bitcoin_blkid chain_hash; |
|
|
|
|
|
|
|
/* This must be lightningd. */ |
|
|
|
assert(is_lightningd(c)); |
|
|
@ -582,7 +583,7 @@ static struct io_plan *init_hsm(struct io_conn *conn, |
|
|
|
* definitions in hsm_client_wire.csv. The format of those files is |
|
|
|
* an extension of the simple comma-separated format output by the |
|
|
|
* BOLT tools/extract-formats.py tool. */ |
|
|
|
if (!fromwire_hsm_init(NULL, msg_in, &bip32_key_version, |
|
|
|
if (!fromwire_hsm_init(NULL, msg_in, &bip32_key_version, &chain_hash, |
|
|
|
&privkey, &seed, &secrets, &shaseed)) |
|
|
|
return bad_req(conn, c, msg_in); |
|
|
|
|
|
|
|