Skip to content

Commit 5b458b6

Browse files
committed
main: allow node to start without bdk wallet
Since bdkwallet is enabled by default, if utreexod wasn't built with bdkwallet, it will not start. This change allows the node to start without the bdkwallet.
1 parent 9a6d381 commit 5b458b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

server.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3556,7 +3556,14 @@ func newServer(listenAddrs, agentBlacklist, agentWhitelist []string,
35563556
DataDir: cfg.DataDir,
35573557
})
35583558
if err != nil {
3559-
return nil, err
3559+
if err == bdkwallet.ErrNoBDK {
3560+
s.bdkWallet = nil
3561+
cfg.NoBdkWallet = true
3562+
btcdLog.Infof("Unable to enable bkdwallet as utreexod wasn't built with bdkwallet. " +
3563+
"Starting node without bdkwallet.")
3564+
} else {
3565+
return nil, err
3566+
}
35603567
}
35613568
}
35623569

0 commit comments

Comments
 (0)