Skip to content

Commit 2f5f081

Browse files
committed
lnd+signrescuefunding: use DeriveNonStandard to be compatible with lnd
1 parent a239f94 commit 2f5f081

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/chantools/signrescuefunding.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ broadcast by any Bitcoin node.`,
4545
)
4646

4747
cc.rootKey = newRootKey(cc.cmd, "deriving keys")
48-
48+
4949
return cc.cmd
5050
}
5151

@@ -158,7 +158,7 @@ func findLocalMultisigKey(multisigBranch *hdkeychain.ExtendedKey,
158158

159159
// Loop through the local multisig keys to find the target key.
160160
for index := uint32(0); index < MaxChannelLookup; index++ {
161-
currentKey, err := multisigBranch.Derive(index)
161+
currentKey, err := multisigBranch.DeriveNonStandard(index)
162162
if err != nil {
163163
return nil, fmt.Errorf("error deriving child key: %v",
164164
err)

lnd/hdkeychain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func DeriveChildren(key *hdkeychain.ExtendedKey, path []uint32) (
3232
err error
3333
)
3434
for _, pathPart := range path {
35-
currentKey, err = currentKey.Derive(pathPart)
35+
currentKey, err = currentKey.DeriveNonStandard(pathPart)
3636
if err != nil {
3737
return nil, err
3838
}

0 commit comments

Comments
 (0)