mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
lightningd: move bip32_base pointer into struct lightningd.
It's needed as the db and wallet is being set up (db migrations), so it's simpler this way to always use ld->bip32_base for the next patch. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -465,7 +465,7 @@ void peer_start_closingd(struct channel *channel, struct peer_fd *peer_fd)
|
||||
&index_val,
|
||||
&is_p2sh)) {
|
||||
if (bip32_key_from_parent(
|
||||
ld->wallet->bip32_base,
|
||||
ld->bip32_base,
|
||||
index_val,
|
||||
BIP32_FLAG_KEY_PUBLIC,
|
||||
&ext_key_val) != WALLY_OK) {
|
||||
@@ -838,7 +838,7 @@ static struct command_result *json_close(struct command *cmd,
|
||||
struct ext_key *final_ext_key = NULL;
|
||||
if (final_index) {
|
||||
if (bip32_key_from_parent(
|
||||
channel->peer->ld->wallet->bip32_base,
|
||||
channel->peer->ld->bip32_base,
|
||||
*final_index,
|
||||
BIP32_FLAG_KEY_PUBLIC,
|
||||
&ext_key_val) != WALLY_OK) {
|
||||
|
||||
Reference in New Issue
Block a user