Skip to content

Commit 67d4643

Browse files
committed
Merge #20152: doc: Update wallet files in files.md
defe48a doc: Update wallet files in files.md (Hennadii Stepanov) Pull request description: This PR is a #19077 follow up, and it addresses the [comment](bitcoin/bitcoin#19077 (comment)): > If need to update, there are two corrections that could be made: > > * Line 69 "Wallets are Berkeley DB (BDB) databases" is no longer true > > * Line 76 "Wallet lock file" should say "BDB wallet lock file" ACKs for top commit: RiccardoMasutti: ACK defe48a meshcollider: ACK defe48a Tree-SHA512: 39939f86a9c7842bf06913998305dcbd6209585f1da0fe9c274bac0572eb8464e59176884dd9e2b91312f34efad40cdeb4085ec72c2a2c1b33d16b6ab505140c
2 parents fa463f1 + defe48a commit 67d4643

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

doc/files.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
- [Multi-wallet environment](#multi-wallet-environment)
1010

11+
- [Berkeley DB database based wallets](#berkeley-db-database-based-wallets)
12+
13+
- [SQLite database based wallets](#sqlite-database-based-wallets)
14+
1115
- [GUI settings](#gui-settings)
1216

1317
- [Legacy subdirectories and files](#legacy-subdirectories-and-files)
@@ -67,26 +71,36 @@ Subdirectory | File(s) | Description
6771

6872
## Multi-wallet environment
6973

70-
Wallets are Berkeley DB (BDB) databases:
74+
Wallets are Berkeley DB (BDB) or SQLite databases.
7175

72-
Subdirectory | File(s) | Description
73-
-------------|-------------------|------------
74-
`database/` | BDB logging files | Part of BDB environment; created at start and deleted on shutdown; a user *must keep it as safe* as personal wallet `wallet.dat`
75-
`./` | `db.log` | BDB error file
76-
`./` | `wallet.dat` | Personal wallet with keys and transactions. May be either a Berkeley DB or SQLite database file.
77-
`./` | `.walletlock` | Wallet lock file
78-
`./` | `wallet.dat-journal` | SQLite Rollback Journal file for `wallet.dat`. Usually created at start and deleted on shutdown. A user *must keep it as safe* as the `wallet.dat` file.
79-
80-
1. Each user-defined wallet named "wallet_name" resides in `wallets/wallet_name/` subdirectory.
76+
1. Each user-defined wallet named "wallet_name" resides in the `wallets/wallet_name/` subdirectory.
8177

8278
2. The default (unnamed) wallet resides in `wallets/` subdirectory; if the latter does not exist, the wallet resides in the data directory.
8379

84-
3. A wallet database path can be specified by `-wallet` option.
80+
3. A wallet database path can be specified with the `-wallet` option.
8581

8682
4. `wallet.dat` files must not be shared across different node instances, as that can result in key-reuse and double-spends due the lack of synchronization between instances.
8783

8884
5. Any copy or backup of the wallet should be done through a `backupwallet` call in order to update and lock the wallet, preventing any file corruption caused by updates during the copy.
8985

86+
87+
### Berkeley DB database based wallets
88+
89+
Subdirectory | File(s) | Description
90+
-------------|-------------------|-------------
91+
`database/` | BDB logging files | Part of BDB environment; created at start and deleted on shutdown; a user *must keep it as safe* as personal wallet `wallet.dat`
92+
`./` | `db.log` | BDB error file
93+
`./` | `wallet.dat` | Personal wallet (a BDB database) with keys and transactions
94+
`./` | `.walletlock` | BDB wallet lock file
95+
96+
### SQLite database based wallets
97+
98+
Subdirectory | File | Description
99+
-------------|----------------------|-------------
100+
`./` | `wallet.dat` | Personal wallet (a SQLite database) with keys and transactions
101+
`./` | `wallet.dat-journal` | SQLite Rollback Journal file for `wallet.dat`. Usually created at start and deleted on shutdown. A user *must keep it as safe* as the `wallet.dat` file.
102+
103+
90104
## GUI settings
91105

92106
`bitcoin-qt` uses [`QSettings`](https://doc.qt.io/qt-5/qsettings.html) class; this implies platform-specific [locations where application settings are stored](https://doc.qt.io/qt-5/qsettings.html#locations-where-application-settings-are-stored).

0 commit comments

Comments
 (0)