From 19233dc42d8d0d5abe2fc63a95f90888dc908ce6 Mon Sep 17 00:00:00 2001 From: Tadge Dryja Date: Thu, 31 Dec 2015 12:17:41 -0400 Subject: [PATCH] wallet creation works, takes 11 seconds --- lnwallet/wallet.go | 4 ++++ 1 file changed, 4 insertions(+) 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") }