Issue Details

Number
29559
Title
bitcoin-wallet requires write permissions when unneeded
Description
### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behaviour I have some wallets that are write protected and want to use `bitcoin-wallet info` and `bitcoin-wallet dump` but am unable to do so because these commands require write permission. ```text $ bitcoin-wallet -datadir=. -wallet=wallet-name -dumpfile=wallet.dump dump SQLiteDatabase: Database opened in readonly mode but read-write permissions are needed $ bitcoin-wallet -datadir=. -wallet=wallet-name info SQLiteDatabase: Database opened in readonly mode but read-write permissions are needed ``` ### Expected behaviour I would expect commands that are not intended to change the wallet to only require read permissions and be able to work on wallet directories and files that are read only. This will also stop mistakes from corrupting the database. ### Steps to reproduce ```sh chmod -R a-w <wallet-directory> bitcoin-wallet -datadir=<wallet-directory> -wallet=<wallet-name> -dumpfile=wallet.dump dump bitcoin-wallet -datadir=<wallet-directory> -wallet=<wallet-name> info ``` ### Relevant log output _No response_ ### How did you obtain Bitcoin Core Package manager ### What version of Bitcoin Core are you using? v25.0.0 ### Operating system and version OpenBSD 7.4 Stable ### Machine specifications _No response_
URL
https://github.com/bitcoin/bitcoin/issue/29559
Closed by
Back to List