diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index d7090aa5..cce7d4fc 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -299,6 +299,10 @@ func NewLightningWallet(config *Config) (*LightningWallet, error) { if err != nil { return nil, err } + err = db.Close() + if err != nil { + return nil, err + } log.Printf("stored identity key pubkey hash in channeldb\n") }