Skip to content

Commit defe48a

Browse files
committed
doc: Update wallet files in files.md
1 parent 8ed37f6 commit defe48a

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)
@@ -66,26 +70,36 @@ Subdirectory | File(s) | Description
6670

6771
## Multi-wallet environment
6872

69-
Wallets are Berkeley DB (BDB) databases:
73+
Wallets are Berkeley DB (BDB) or SQLite databases.
7074

71-
Subdirectory | File(s) | Description
72-
-------------|-------------------|------------
73-
`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`
74-
`./` | `db.log` | BDB error file
75-
`./` | `wallet.dat` | Personal wallet with keys and transactions. May be either a Berkeley DB or SQLite database file.
76-
`./` | `.walletlock` | Wallet lock file
77-
`./` | `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.
78-
79-
1. Each user-defined wallet named "wallet_name" resides in `wallets/wallet_name/` subdirectory.
75+
1. Each user-defined wallet named "wallet_name" resides in the `wallets/wallet_name/` subdirectory.
8076

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

83-
3. A wallet database path can be specified by `-wallet` option.
79+
3. A wallet database path can be specified with the `-wallet` option.
8480

8581
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.
8682

8783
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.
8884

85+
86+
### Berkeley DB database based wallets
87+
88+
Subdirectory | File(s) | Description
89+
-------------|-------------------|-------------
90+
`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`
91+
`./` | `db.log` | BDB error file
92+
`./` | `wallet.dat` | Personal wallet (a BDB database) with keys and transactions
93+
`./` | `.walletlock` | BDB wallet lock file
94+
95+
### SQLite database based wallets
96+
97+
Subdirectory | File | Description
98+
-------------|----------------------|-------------
99+
`./` | `wallet.dat` | Personal wallet (a SQLite database) with keys and transactions
100+
`./` | `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.
101+
102+
89103
## GUI settings
90104

91105
`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)