feat(wallets): show created date + sort the wallet list
Parse the earliest keymeta nCreateTime out of the wallet.dat btree (the daemon's
"wallet birthday") and surface it in each row's metadata line ("created Aug 2025").
Add a sort control above the list — Date created / Address count / Transaction
count / Wallet size, with an ascending/descending toggle (descending default:
newest / most / largest first). Sorting reorders a display-index array
(s_order) rather than s_rows, so the async, index-aligned probe batch is
untouched; sort keys read a single frame-consistent snapshot of the probe
results. Address count prefers the authoritative cached index value, else the
btree key count.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -260,6 +260,14 @@ void I18n::loadBuiltinEnglish()
|
||||
strings_["wallets_col_addresses"] = "Addresses";
|
||||
strings_["wallets_col_txs"] = "txs";
|
||||
strings_["wallets_col_keys"] = "keys";
|
||||
strings_["wallets_created"] = "created";
|
||||
strings_["wallets_sort_by"] = "Sort:";
|
||||
strings_["wallets_sort_created"] = "Date created";
|
||||
strings_["wallets_sort_addresses"] = "Address count";
|
||||
strings_["wallets_sort_txs"] = "Transaction count";
|
||||
strings_["wallets_sort_size"] = "Wallet size";
|
||||
strings_["wallets_sort_asc"] = "Ascending (oldest / fewest / smallest first)";
|
||||
strings_["wallets_sort_desc"] = "Descending (newest / most / largest first)";
|
||||
strings_["wallets_col_balance"] = "Balance";
|
||||
strings_["wallets_col_opened"] = "Last opened";
|
||||
strings_["wallets_current"] = "current";
|
||||
|
||||
Reference in New Issue
Block a user