Skip to content

Commit 5f262f1

Browse files
committed
lnd: pass "readonly" flag to bdb.Open()
1 parent 417d88e commit 5f262f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnd/aezeed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func OpenWallet(walletDbPath string,
226226
// Try to load and open the wallet.
227227
db, err := walletdb.Open(
228228
"bdb", lncfg.CleanAndExpandPath(walletDbPath), false,
229-
DefaultOpenTimeout,
229+
DefaultOpenTimeout, false,
230230
)
231231
if errors.Is(err, bbolt.ErrTimeout) {
232232
return nil, nil, nil, errors.New("error opening wallet " +

0 commit comments

Comments
 (0)