1
0

Store file creation date and version in db

Store the electrum version used to create a wallet file and a timestamp,
in the file itself. This can be useful for debugging.
This commit is contained in:
SomberNight
2023-03-13 15:15:50 +00:00
parent 9e0d7b61bb
commit 950065a3de
2 changed files with 40 additions and 1 deletions

View File

@@ -1733,6 +1733,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
grid.addWidget(WWLabel(_("Wallet name")+ ':'), cur_row, 0)
grid.addWidget(WWLabel(basename), cur_row, 1)
cur_row += 1
if db_metadata := self.wallet.db.get_db_metadata():
grid.addWidget(WWLabel(_("File created") + ':'), cur_row, 0)
grid.addWidget(WWLabel(db_metadata.to_str()), cur_row, 1)
cur_row += 1
grid.addWidget(WWLabel(_("Wallet type")+ ':'), cur_row, 0)
grid.addWidget(WWLabel(wallet_type), cur_row, 1)
cur_row += 1