Lnd: channeldb: open bbolt database with a timeout

Created on 24 Jul 2020  路  3Comments  路  Source: lightningnetwork/lnd

As is, when we open the database, we'll block indefinitely waiting to obtain the file lock on the database file. Instead, we should open the database with the timeout field specified. With a timeout value set, an error will be returned (which will shutdown lnd) if we're unable to open the database after a set duration.

database debugging v0.12

All 3 comments

I'm looking into this issue.

One question, to make this happen, we need to change this line in btcsuite/btcwallet/walletdb first?

I looked into the issue and I can't see any way around it.

Should be able to proceed with this after https://github.com/btcsuite/btcwallet/pull/714 is merged.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexbosworth picture alexbosworth  路  3Comments

ealymbaev picture ealymbaev  路  3Comments

sunnya97 picture sunnya97  路  3Comments

Richard87 picture Richard87  路  3Comments

stevenroose picture stevenroose  路  3Comments