From fb2b107beff6bbeb5ae3ba6f0bfba7e24e3d5369 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 22 Apr 2021 17:27:20 +0200 Subject: [PATCH] libhsmd: Cleanup the bip32_key_version --- hsmd/hsmd.c | 6 +----- hsmd/libhsmd.c | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/hsmd/hsmd.c b/hsmd/hsmd.c index a4877d06f..96d480e95 100644 --- a/hsmd/hsmd.c +++ b/hsmd/hsmd.c @@ -46,11 +46,6 @@ * stream from lightningd. */ #define REQ_FD 3 -/* Version codes for BIP32 extended keys in libwally-core. - * It's not suitable to add this struct into client struct, - * so set it static.*/ -extern struct bip32_key_version bip32_key_version; - #if DEVELOPER /* If they specify --dev-force-privkey it ends up in here. */ extern struct privkey *dev_force_privkey; @@ -459,6 +454,7 @@ static struct io_plan *init_hsm(struct io_conn *conn, struct secrets *secrets; struct sha256 *shaseed; struct secret *hsm_encryption_key; + struct bip32_key_version bip32_key_version; /* This must be lightningd. */ assert(is_lightningd(c)); diff --git a/hsmd/libhsmd.c b/hsmd/libhsmd.c index 3bde97157..328914653 100644 --- a/hsmd/libhsmd.c +++ b/hsmd/libhsmd.c @@ -8,11 +8,6 @@ #include #include -/* Version codes for BIP32 extended keys in libwally-core. - * It's not suitable to add this struct into client struct, - * so set it static.*/ -struct bip32_key_version bip32_key_version; - #if DEVELOPER /* If they specify --dev-force-privkey it ends up in here. */ struct privkey *dev_force_privkey;