You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/chantools/genimportscript.go
+53-32Lines changed: 53 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@ package main
2
2
3
3
import (
4
4
"fmt"
5
+
"strconv"
6
+
"strings"
5
7
"time"
6
8
7
9
"github.com/btcsuite/btcd/chaincfg"
@@ -13,11 +15,13 @@ import (
13
15
const (
14
16
defaultRecoveryWindow=2500
15
17
defaultRescanFrom=500000
18
+
defaultDerivationPath="m/84'/0'/0'"
16
19
)
17
20
18
21
typegenImportScriptCommandstruct {
19
22
RootKeystring`long:"rootkey" description:"BIP32 HD root key to use. Leave empty to prompt for lnd 24 word aezeed."`
20
23
Formatstring`long:"format" description:"The format of the generated import script. Currently supported are: bitcoin-cli, bitcoin-cli-watchonly, bitcoin-importwallet."`
24
+
DerivationPathstring`long:"derivationpath" description:"The first levels of the derivation path before any internal/external branch. (default m/84'/0'/0')"`
21
25
RecoveryWindowuint32`long:"recoverywindow" description:"The number of keys to scan per internal/external branch. The output will consist of double this amount of keys. (default 2500)"`
22
26
RescanFromuint32`long:"rescanfrom" description:"The block number to rescan from. Will be set automatically from the wallet birthday if the lnd 24 word aezeed is entered. (default 500000)"`
0 commit comments