Repository navigation
Release v11.6 - #1458
Release v11.6#1458
Conversation
📝 WalkthroughWalkthroughVersion dependencies updated; extensive localization additions across 30+ language resources for wallet features, gift cards, and DashPay flows; changelog entry for v11.6.0; test refactoring for security and transaction export; Kotlin implementation improvements for blockchain service, identity restoration, and network handling with voting-state logic additions. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Note
Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (3)
wallet/src/de/schildbach/wallet/service/platform/work/RestoreIdentityWorker.kt (2)
126-132: Potential false failure before auth keychains are initialized.
getIdentityFromPublicKeyId()can return null if the identity keychain doesn’t exist yet; in fresh restores you only add keychains after this check. Also the password is fetched twice. Consider initializing keychains first and reusing the derived key for both the existence check and recovery.🔧 Suggested reordering and key reuse
- val existingIdentity = platformRepo.getIdentityFromPublicKeyId() - ?: throw IllegalArgumentException("identity $identity doesn't exist on the network") - - val wallet = walletDataProvider.wallet!! - val encryptionKey = platformRepo.getWalletEncryptionKey() - ?: throw IllegalStateException("cannot obtain wallet encryption key") - val seed = wallet.keyChainSeed ?: throw IllegalStateException("cannot obtain wallet seed") + val wallet = walletDataProvider.wallet!! + val encryptionKey = platformRepo.getWalletEncryptionKey() + ?: throw IllegalStateException("cannot obtain wallet encryption key") + val seed = wallet.keyChainSeed ?: throw IllegalStateException("cannot obtain wallet seed") + + // ensure auth keychains exist before deriving identity keys + platformRepo.addWalletAuthenticationKeys(seed, encryptionKey) + val firstIdentityKey = platformRepo.getBlockchainIdentityKey(0, encryptionKey) + ?: throw IllegalStateException("missing blockchain identity key") + val existingIdentity = platformRepo.platform.stateRepository + .fetchIdentityFromPubKeyHash(firstIdentityKey.pubKeyHash) + ?: throw IllegalArgumentException("identity $identity doesn't exist on the network") @@ - platformRepo.addWalletAuthenticationKeys(seed, encryptionKey) + // keychains already initialized above @@ - val firstIdentityKey = platformRepo.getBlockchainIdentityKey(0, encryptionKey)!! platformRepo.recoverIdentityAsync( blockchainIdentity, firstIdentityKey.pubKeyHash )Also applies to: 151-155
269-273:earliestCreatedAtuses the wrong document inminOf.
The lambda captures the outerdocumentWithVotes, sominOfeffectively uses the same timestamp for all contenders. This can skew voting start times and scheduling. Use the lambda parameter instead.🐛 Fix `minOf` to evaluate each contender
- val earliestCreatedAt = voteContenders.map.values.minOf { - val document = documentWithVotes.serializedDocument?.let { platformRepo.platform.names.deserialize(it) } - document?.createdAt ?: 0 - } + val earliestCreatedAt = voteContenders.map.values.minOf { contender -> + val document = contender.serializedDocument?.let { platformRepo.platform.names.deserialize(it) } + document?.createdAt ?: 0 + } @@ - val earliestCreatedAt = voteContenders.map.values.minOf { - val document = documentWithVotes.serializedDocument?.let { - platformRepo.platform.names.deserialize(it) - } - document?.createdAt ?: 0 - } + val earliestCreatedAt = voteContenders.map.values.minOf { contender -> + val document = contender.serializedDocument?.let { + platformRepo.platform.names.deserialize(it) + } + document?.createdAt ?: 0 + }Also applies to: 386-392
wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt (1)
865-953: KeepavailableNetworkssynchronized on capability changes to avoid false NETWORK impediments.
availableNetworksis only updated inonAvailable/onLost, whileonCapabilitiesChangedtoggles impediments based on a single network without updating the set. In multi-network scenarios, one network losing validation will incorrectly addImpediment.NETWORKeven if other validated networks remain in the set. UpdateavailableNetworksinonCapabilitiesChangedand derive the impediment from set emptiness instead.🛠️ Suggested fix to keep the set/impediment consistent
override fun onCapabilitiesChanged(network: Network, capabilities: NetworkCapabilities) { serviceScope.launch { val hasInternet = capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) val hasValidated = capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) + val isSuitable = hasInternet && hasValidated if (log.isInfoEnabled) { val s = StringBuilder("network capabilities changed: ") .append(network) .append(", hasInternet: ").append(hasInternet) .append(", validated: ").append(hasValidated) log.info(s.toString()) } - if (hasInternet && hasValidated) { - impediments.remove(Impediment.NETWORK) - } else { - impediments.add(Impediment.NETWORK) - } + if (isSuitable) { + availableNetworks.add(network) + } else { + availableNetworks.remove(network) + } + + if (availableNetworks.isEmpty()) { + impediments.add(Impediment.NETWORK) + } else { + impediments.remove(Impediment.NETWORK) + } updateBlockchainStateImpediments() check() } }
🟡 Minor comments (33)
features/exploredash/src/main/res/values-el/strings-explore-dash.xml-92-92 (1)
92-92: Untranslated English strings in Greek locale file.The strings
flexible_amount_option(line 92) andflexible_amounts(line 266) remain in English ("Flexible amounts") whilefixed_amountsandfixed_denom_optionare properly translated to Greek ("Σταθερά ποσά" and "Ποσά σε σταθερές μονάδες"). This inconsistency will display English text to Greek users.Consider translating to something like "Ευέλικτα ποσά" for consistency.
Also applies to: 266-266
wallet/res/values-fa/strings-dashpay.xml-540-544 (1)
540-544: Typo: "عیر" should be "غیر".In the phrase "در عیر این صورت" (line 542), the word "عیر" should be "غیر" to correctly spell "otherwise" (در غیر این صورت).
📝 Suggested fix
- <string name="create_instant_username_description">نام کاربری درخواستی شما طی دو هفته آینده به رای گذاشته میشود. برای ارتباطگیری و پرداختهای فوری، میتوانید یک نام کاربری مشابه فوری بسازید.\nاگر درخواست اصلیتان مورد پذیرش قرار گرفت، آن نام کاربری جایگزین این نام کاربری فوری میشود و همه مخاطبان و سابقه آن نیز حفظ خواهد شد. در عیر این صورت، میتوانید همچنان به استفاده از این نام کاربری فوری ادامه دهید. </string> + <string name="create_instant_username_description">نام کاربری درخواستی شما طی دو هفته آینده به رای گذاشته میشود. برای ارتباطگیری و پرداختهای فوری، میتوانید یک نام کاربری مشابه فوری بسازید.\nاگر درخواست اصلیتان مورد پذیرش قرار گرفت، آن نام کاربری جایگزین این نام کاربری فوری میشود و همه مخاطبان و سابقه آن نیز حفظ خواهد شد. در غیر این صورت، میتوانید همچنان به استفاده از این نام کاربری فوری ادامه دهید. </string>wallet/res/values-fa/strings-dashpay.xml-535-536 (1)
535-536: Translation error: "نداریم" should be "داریم".The current text "دو نوع نام کاربری نداریم" translates to "We don't have two types of usernames," but the intended meaning is "We have two types of usernames." This reverses the meaning of the explanatory message.
📝 Suggested fix
- <string name="username_types_message">دو نوع نام کاربری نداریم: توافقشده و توافقنشده.\nنامهای کاربری توافقنشده شامل حداقل یک عدد (۲ تا ۹) هستید و یا بیش از ۲۰ کاراکتر دارند و به صورت خودکار مورد تائید قرار میگیرند.\nاگر میخواهید نام کابری توافقشده ایجاد کنید که کوتاهتر و بدون عدد است، باید بدون دعوتنامه در دشپی ثبتنام کنید، کارمزد مربوطه را بپردازید و منتظر تائید پس از تکمیل دوره رأیگیری بمانید.</string> + <string name="username_types_message">دو نوع نام کاربری داریم: توافقشده و توافقنشده.\nنامهای کاربری توافقنشده شامل حداقل یک عدد (۲ تا ۹) هستند و یا بیش از ۲۰ کاراکتر دارند و به صورت خودکار مورد تائید قرار میگیرند.\nاگر میخواهید نام کاربری توافقشده ایجاد کنید که کوتاهتر و بدون عدد است، باید بدون دعوتنامه در دشپی ثبتنام کنید، کارمزد مربوطه را بپردازید و منتظر تائید پس از تکمیل دوره رأیگیری بمانید.</string>Note: The diff also fixes two additional typos: "هستید" → "هستند" (verb agreement) and "کابری" → "کاربری".
wallet/res/values-fa/strings-dashpay.xml-56-57 (1)
56-57: Typo: "کاربردی" should be "کاربری".The word "کاربردی" means "practical/functional," but the intended word is "کاربری" (user), consistent with other strings in this file using "نام کاربری" for "username."
📝 Suggested fix
- <string name="invitation_username_already_found_voting_title">نام کاربردی قبلاً درخواست شده است</string> + <string name="invitation_username_already_found_voting_title">نام کاربری قبلاً درخواست شده است</string>wallet/res/values-zh-rTW/strings.xml-450-453 (1)
450-453: Clarify PIN vs password in upgrade dialog.Line 452 says「密碼」which may read as account password. Prefer explicit「PIN 碼」to avoid ambiguity.
💬 Suggested text update
- <string name="upgrade_pin_description">設置一個新的密碼</string> + <string name="upgrade_pin_description">設定新的 PIN 碼</string>wallet/res/values-zh-rTW/strings.xml-288-293 (1)
288-293: Normalize rescan terminology within this dialog.Line 288-293 mixes「掃描/掃瞄」and「連接/連線」in the same flow. Suggest standardizing to one form (commonly「掃描/連線」in zh‑TW).
💬 Suggested consistency update
- <string name="rescan_blockchain_dialog_message">這將暫時隱藏您的錢包餘額並刪除交易。隨著區塊鏈同步的進展,兩者都會恢復。請確保您有可靠的互聯網連接。</string> - <string name="rescan_blockchain_select_date_label">選擇錢包創建日期(非必需)</string> - <string name="rescan_blockchain_confirm_button">重新掃瞄</string> + <string name="rescan_blockchain_dialog_message">這將暫時隱藏您的錢包餘額並刪除交易。隨著區塊鏈同步的進展,兩者都會恢復。請確保您有可靠的互聯網連線。</string> + <string name="rescan_blockchain_select_date_label">選擇錢包建立日期(非必填)</string> + <string name="rescan_blockchain_confirm_button">重新掃描</string>wallet/res/values-zh-rTW/strings.xml-206-212 (1)
206-212: Prefer zh‑TW phrasing and optional‑field wording.Line 206-212 reads more like zh‑CN. Consider aligning to zh‑TW norms (建立/非必填 and full‑width punctuation) for consistency with the locale.
💬 Suggested wording update
- <string name="restore_wallet_creation_date_label">錢包創建日期(非必需)</string> - <string name="restore_wallet_creation_date_info">選擇錢包的創建時間可以通過僅從該日期開始掃描來實現更快的同步。</string> - <string name="restore_wallet_select_date">選擇創建日期</string> - <string name="restore_wallet_selected_date">已選擇: %s</string> - <string name="restore_wallet_date_picker_title">你的錢包是什麼時候創建的?</string> - <string name="wallet_creation_date_info_title">錢包創建日期如何加快同步過程?</string> - <string name="wallet_creation_date_info_description">如果您知道創建錢包的大致日期,則可以輸入該日期,並且將檢索該日期後的交易,從而加快同步速度。請注意,如果您輸入的日期晚於創建錢包的日期,則不會下載較日期早之前的交易。</string> + <string name="restore_wallet_creation_date_label">錢包建立日期(非必填)</string> + <string name="restore_wallet_creation_date_info">選擇錢包的建立時間可僅從該日期開始掃描,以加快同步。</string> + <string name="restore_wallet_select_date">選擇建立日期</string> + <string name="restore_wallet_selected_date">已選擇:%s</string> + <string name="restore_wallet_date_picker_title">你的錢包是什麼時候建立的?</string> + <string name="wallet_creation_date_info_title">錢包建立日期如何加快同步?</string> + <string name="wallet_creation_date_info_description">如果您知道錢包的大致建立日期,可以輸入該日期,並僅檢索該日期之後的交易,以加快同步速度。請注意,如果您輸入的日期晚於實際建立日期,較早的交易將不會被下載。</string>wallet/res/values-fil/strings.xml-438-440 (1)
438-440: Minor copy fix: hyphenate “Mag‑set up”.
Small consistency/grammar tweak in Filipino UI text.✏️ Suggested wording
- <string name="upgrade_pin_description">Mag set up ng bagong PIN</string> + <string name="upgrade_pin_description">Mag-set up ng bagong PIN</string>wallet/res/values-fil/strings-dashpay.xml-520-537 (1)
520-537: Fix grammar in the non‑contested invitation message.
Current sentence is missing the “o” connector.✏️ Suggested wording
- <string name="invitation_fee_noncontested_message">Ang taong pinadalhan mo ng imbitasyong ito ay maaaring humiling ng username na mayroong numero 2-9, ay higit sa 20 na karakter</string> + <string name="invitation_fee_noncontested_message">Ang taong pinadalhan mo ng imbitasyong ito ay maaaring humiling ng username na mayroong numero 2-9 o higit sa 20 na karakter</string>wallet/res/values-id/strings-dashpay.xml-20-23 (1)
20-23: Use “instan” instead of “instant” in Indonesian copy.
Minor localization typo in the new secondary confirm message.📝 Proposed fix
- <string name="new_account_secondary_confirm_message">Anda telah memilih %s sebagai nama pengguna instant. Perlu dicatat nama pengguna TIDAK bisa diubah setelah didaftarkan.</string> + <string name="new_account_secondary_confirm_message">Anda telah memilih %s sebagai nama pengguna instan. Perlu dicatat nama pengguna TIDAK bisa diubah setelah didaftarkan.</string>wallet/res/values-id/strings-dashpay.xml-524-545 (1)
524-545: Fix minor typos/wording in invitation/instant-username copy.
Cleans up Indonesian wording and spacing in new strings.📝 Proposed fix
- <string name="error_sending_invite_transaction">Terjadi error saat mengirim transaksi undangan</string> - <string name="request_username_invitation_not_mixed_message">Undangan dibuat dengan dana yang tidak di mixing</string> - <string name="username_types_message">Ada dua jenis nama pengguna: yang diperebutkan dan yang tidak diperebutkan.\n\nNama pengguna yang tidak diperebutkan memiliki setidaknya satu angka (2-9) atau lebih dari 20 karakter dan akan disetujui secara otomatis.\n\njika Anda ingin membuat nama pengguna yang diperebutkan yang lebih pendek dan tanpa angka, Anda perlu mendaftar di DashPay tanpa undangan, membayar biaya yang diperlukan, dan menunggu persetujuan setelah periode pemungutan suara selesai.</string> - <string name="create_instant_username_title">Buat sebuah nama pengguna instan</string> + <string name="error_sending_invite_transaction">Terjadi kesalahan saat mengirim transaksi undangan</string> + <string name="request_username_invitation_not_mixed_message">Undangan dibuat dengan dana yang tidak dicampur</string> + <string name="username_types_message">Ada dua jenis nama pengguna: yang diperebutkan dan yang tidak diperebutkan.\n\nNama pengguna yang tidak diperebutkan memiliki setidaknya satu angka (2-9) atau lebih dari 20 karakter dan akan disetujui secara otomatis.\n\nJika Anda ingin membuat nama pengguna yang diperebutkan yang lebih pendek dan tanpa angka, Anda perlu mendaftar di DashPay tanpa undangan, membayar biaya yang diperlukan, dan menunggu persetujuan setelah periode pemungutan suara selesai.</string> + <string name="create_instant_username_title">Buat sebuah nama pengguna instan</string>wallet/res/values-zh-rTW/strings-extra.xml-4-5 (1)
4-5: Keep onboarding restore wording consistent with the rest of the locale.Line 5 uses “回復”, while other restore strings in this locale use “恢復”. Aligning avoids mixed terminology in onboarding vs. other restore flows.
💡 Suggested tweak
- <string name="onboarding_recover_wallet">回復錢包</string> + <string name="onboarding_recover_wallet">恢復錢包</string>wallet/res/values-el/strings-extra.xml-338-340 (1)
338-340: Fix the contradictory phrase in the welcome title.Line 338 says “χωρίς μέσω”, which is self‑contradictory. Consider removing “χωρίς” so the text reads naturally.
💡 Suggested tweak
- <string name="welcome_screen_title_1">Στείλτε και λάβετε Dash χωρίς μέσω ονομάτων χρήσης</string> + <string name="welcome_screen_title_1">Στείλτε και λάβετε Dash μέσω ονομάτων χρήστη</string>wallet/res/values-zh-rTW/strings-extra.xml-335-337 (1)
335-337: Remove extra spaces around “達世幣” to avoid awkward UI spacing.Lines 336–337 introduce extra spaces that will render oddly in Chinese typography.
💡 Suggested tweak
- <string name="welcome_screen_title_2">在數千家商店花費 達世幣</string> - <string name="welcome_screen_title_3">存儲 達世幣 最安全的方式</string> + <string name="welcome_screen_title_2">在數千家商店花費達世幣</string> + <string name="welcome_screen_title_3">存儲達世幣最安全的方式</string>wallet/res/values-nl/strings-dashpay.xml-525-533 (1)
525-533: Trim leading whitespace in labels.
Line 527 has a leading space that will show in UI labels.🛠 Proposed fix
- <string name="invitation_fee_noncontested"> Niet betwist</string> + <string name="invitation_fee_noncontested">Niet betwist</string>wallet/res/values-nl/strings-dashpay.xml-449-455 (1)
449-455: Remove leading whitespace in user-facing text.
Line 454 starts with a space, which will render visibly in the UI.🛠 Proposed fix
- <string name="request_username_length_requirement_noncontested"> Tussen 20 en 23 tekens</string> + <string name="request_username_length_requirement_noncontested">Tussen 20 en 23 tekens</string>wallet/res/values-de/strings.xml-207-213 (1)
207-213: Keep formality consistent (“du/deine” vs “Sie/Ihre”).
Line 208 switches to formal “Ihre”, while nearby strings use informal “deine/du”.🛠 Proposed fix
- <string name="restore_wallet_creation_date_info">Durch die Auswahl des Erstellungsdatums Ihrer Wallet wird die Synchronisierung beschleunigt, da nur Daten ab diesem Datum gescannt werden.</string> + <string name="restore_wallet_creation_date_info">Durch die Auswahl des Erstellungsdatums deiner Wallet wird die Synchronisierung beschleunigt, da nur Daten ab diesem Datum gescannt werden.</string>wallet/res/values-es/strings.xml-206-212 (1)
206-212: Format string typo on line 209.The string
restore_wallet_selected_datecontains1%swhich appears to be a typo. Other locales use just%s:
- Greek:
Επιλεγμένη: %s- Portuguese:
Selecionado: %sThis will cause a literal "1" to appear before the date value.
Proposed fix
- <string name="restore_wallet_selected_date">Selecciono: 1%s</string> + <string name="restore_wallet_selected_date">Seleccionado: %s</string>wallet/res/values-es/strings-extra.xml-268-268 (1)
268-268: Fix accent in menu label.Line 268: “Invitaciónes” should be “Invitaciones”.
✏️ Suggested copy fix
- <string name="menu_invite_title">Invitaciónes</string> + <string name="menu_invite_title">Invitaciones</string>wallet/res/values-pl/strings.xml-206-210 (1)
206-210: Polish date labels need grammatical fixes (“datę”, casing).Line 206-210 and Line 290 contain missing diacritics and casing inconsistencies that read as typos to native speakers.
✏️ Suggested copy fixes
- <string name="restore_wallet_creation_date_label">Data Stworzenia Portfela (Opcjonalne)</string> + <string name="restore_wallet_creation_date_label">Data stworzenia portfela (opcjonalna)</string> - <string name="restore_wallet_select_date">Wybierz Date Stworzenia</string> + <string name="restore_wallet_select_date">Wybierz datę stworzenia</string> - <string name="rescan_blockchain_select_date_label">Zaznacz data stworzenia portfela (opcjonalne)</string> + <string name="rescan_blockchain_select_date_label">Zaznacz datę stworzenia portfela (opcjonalnie)</string>Also applies to: 288-290
wallet/res/values-fr/strings-dashpay.xml-533-533 (1)
533-533: Grammar: feminine agreement in invitation message.“Invitation” is feminine in French; use “créée”.
✏️ Suggested fix
- <string name="request_username_invitation_not_mixed_message">L\'invitation a été créé avec des fonds non mélangés</string> + <string name="request_username_invitation_not_mixed_message">L\'invitation a été créée avec des fonds non mélangés</string>wallet/res/values-el/strings-dashpay.xml-537-537 (1)
537-537: Remove duplicate period inusername_types_message.There’s a double “..” at the end of the sentence.
✏️ Suggested fix
- <string name="username_types_message">Υπάρχουν δύο τύποι ονομάτων χρήστη: αμφισβητούμενα και μη αμφισβητούμενα.\n\nΤα μη αμφισβητούμενα ονόματα χρηστών έχουν τουλάχιστον έναν αριθμό (2-9) ή είναι μεγαλύτερα από 20 χαρακτήρες και θα εγκριθούν αυτόματα..\n\nΑν θέλετε να δημιουργήσετε ένα αμφισβητούμενο όνομα χρήστη που είναι μικρότερο και χωρίς αριθμούς, πρέπει να εγγραφείτε στο DashPay χωρίς πρόσκληση, να πληρώσετε το απαιτούμενο τέλος και να περιμένετε την έγκριση μετά την ολοκλήρωση της περιόδου ψηφοφορίας.</string> + <string name="username_types_message">Υπάρχουν δύο τύποι ονομάτων χρήστη: αμφισβητούμενα και μη αμφισβητούμενα.\n\nΤα μη αμφισβητούμενα ονόματα χρηστών έχουν τουλάχιστον έναν αριθμό (2-9) ή είναι μεγαλύτερα από 20 χαρακτήρες και θα εγκριθούν αυτόματα.\n\nΑν θέλετε να δημιουργήσετε ένα αμφισβητούμενο όνομα χρήστη που είναι μικρότερο και χωρίς αριθμούς, πρέπει να εγγραφείτε στο DashPay χωρίς πρόσκληση, να πληρώσετε το απαιτούμενο τέλος και να περιμένετε την έγκριση μετά την ολοκλήρωση της περιόδου ψηφοφορίας.</string>wallet/res/values-zh-rTW/strings-dashpay.xml-541-545 (1)
541-545: Remove the extra punctuation in the instant-username description.There’s an extra “.” after the sentence-ending “。” which reads as a typo.
✏️ Suggested fix
- <string name="create_instant_username_description">您請求的用戶名將在 2 週內進行投票。為了立即聯繫和付款,您可以創建類似的即時用戶名。.\n\n如果您的原始請求獲得批准,它將取代即時用戶名,並保留聯繫人和歷史記錄。如果沒有獲批,請繼續使用即時用戶名。</string> + <string name="create_instant_username_description">您請求的用戶名將在 2 週內進行投票。為了立即聯繫和付款,您可以創建類似的即時用戶名。\n\n如果您的原始請求獲得批准,它將取代即時用戶名,並保留聯繫人和歷史記錄。如果沒有獲批,請繼續使用即時用戶名。</string>wallet/res/values-zh-rTW/strings-dashpay.xml-524-539 (1)
524-539: Fix branding and punctuation in the invitation/username types copy.The message currently uses “儀表板網絡” and mixed punctuation (“。.” / “.”). Align branding with existing “達世幣網絡” and use consistent Chinese punctuation.
✏️ Suggested copy tweaks
- <string name="invitation_fee_message">每個邀請將需要得到資助,以便接收者可以在儀表板網絡上快速創建其用戶名稱。</string> + <string name="invitation_fee_message">每個邀請將需要得到資助,以便接收者可以在達世幣網絡上快速創建其用戶名稱。</string> @@ - <string name="username_types_message">用戶名有兩種類型:有爭議的和沒有爭議的。.\n\n沒有爭議的用戶名至少有一個數字(2-9)或超過20個字符,該用戶名稱將自動批准.\n\n如果您想創建一個較短且沒有數字的有爭議的用戶名,則需要在沒有邀請的情況下註冊Dashpay,支付所需的費用並在投票期完成後等待批准。</string> + <string name="username_types_message">用戶名有兩種類型:有爭議的和沒有爭議的。\n\n沒有爭議的用戶名至少有一個數字(2-9)或超過20個字符,該用戶名稱將自動批准。\n\n如果您想創建一個較短且沒有數字的有爭議的用戶名,則需要在沒有邀請的情況下註冊DashPay,支付所需的費用並在投票期完成後等待批准。</string>wallet/res/values-es/strings-dashpay.xml-20-20 (1)
20-20: Fix the stray digit in the placeholder.
Line 20 includes1%s, which will render incorrectly.✏️ Suggested fix
- <string name="new_account_secondary_confirm_message">Elegiste 1%s como nombre de usuario instantáneo. Ten en cuenta que el nombre de usuario no se puede cambiar una vez registrado.</string> + <string name="new_account_secondary_confirm_message">Elegiste %s como nombre de usuario instantáneo. Ten en cuenta que el nombre de usuario no se puede cambiar una vez registrado.</string>wallet/res/values-es/strings-dashpay.xml-220-220 (1)
220-220: Tense mismatch in user instruction.
Line 220 uses past tense (“Esperé”) in an instructional string; consider imperative (“Espera”/“Espere”).✏️ Suggested fix
- <string name="join_dashpay_wait">Esperé a que la sincronización termine para crear un nombre de usuario</string> + <string name="join_dashpay_wait">Espera a que la sincronización termine para crear un nombre de usuario</string>wallet/res/values-ko/strings-dashpay.xml-537-537 (1)
537-537: Add the missing instant-username dialog strings in Korean.Line 537 adds only
create_instant_username_cancel; thecreate_instant_username_title,create_instant_username_description, andcreate_instant_username_buttonkeys are absent in the Korean locale and will fall back to English. Add the missing Korean translations.wallet/res/values-de/strings-dashpay.xml-446-446 (1)
446-446: Remove leading “+” from user-facing string.The plus sign renders in UI and looks like an accidental artifact.
Proposed fix
- <string name="request_username_username_voting_message">+ was ist die Abstimmung über Nutzernamen\?</string> + <string name="request_username_username_voting_message">Was ist die Abstimmung über Nutzernamen\?</string>wallet/res/values-de/strings-dashpay.xml-543-543 (1)
543-543: Fix verb agreement in instant-username description.Plural subject requires “bleiben”.
Proposed fix
- <string name="create_instant_username_description">Der Abstimmungszeitraum für deinen gewünschten Nutzernamen beträgt 2 Wochen. Um sofort Kontakte und Zahlungen nutzen zu können, kannst du einen ähnlichen Nutzernamen sofort erstellen\n\nWenn deine ursprüngliche Auswahl vom Netzwerk bestätigt wurde, tritt der neue Nutzername anstelle des sofort erstellten Nutzernamens. Die Kontakte sowie die Zahlungshistorie bleibt erhalten. Ist dies nicht der Fall, kannst du den \"Instant-Namen\" weiter nutzen.</string> + <string name="create_instant_username_description">Der Abstimmungszeitraum für deinen gewünschten Nutzernamen beträgt 2 Wochen. Um sofort Kontakte und Zahlungen nutzen zu können, kannst du einen ähnlichen Nutzernamen sofort erstellen\n\nWenn deine ursprüngliche Auswahl vom Netzwerk bestätigt wurde, tritt der neue Nutzername anstelle des sofort erstellten Nutzernamens. Die Kontakte sowie die Zahlungshistorie bleiben erhalten. Ist dies nicht der Fall, kannst du den \"Instant-Namen\" weiter nutzen.</string>wallet/res/values-de/strings-dashpay.xml-448-451 (1)
448-451: Fix German grammar in requirements message.“eine dieser Kriterien entsprechen” is ungrammatical; should be “mindestens einem dieser Kriterien entsprechen”.
Proposed fix
- <string name="request_username_requirements_message_invite_noncontested">Der Nutzername muss eine dieser Kriterien entsprechen</string> + <string name="request_username_requirements_message_invite_noncontested">Der Nutzername muss mindestens einem dieser Kriterien entsprechen</string>wallet/res/values-de/strings-dashpay.xml-462-462 (1)
462-462: Use consistent “Dash‑Netzwerk” spelling.Missing hyphen deviates from the rest of the file.
Proposed fix
- <string name="request_username_lost_vote_message">Aufgrund des Voting-Prozesses hat das Dash Netzwerk entschieden, den Nutzernamen %s an jemand anderen zu vergeben. Bitte versuche es erneut mit einem anderen Benutzernamen.</string> + <string name="request_username_lost_vote_message">Aufgrund des Voting-Prozesses hat das Dash-Netzwerk entschieden, den Nutzernamen %s an jemand anderen zu vergeben. Bitte versuche es erneut mit einem anderen Benutzernamen.</string>wallet/res/values-de/strings-dashpay.xml-528-529 (1)
528-529: Capitalization and pluralization fixes in invitation fee copy.“wünschen” should be capitalized; “Nummer 2-9” should be pluralized.
Proposed fix
- <string name="invitation_fee_contested_message">Der Person, der du diese Einladung sendest, kann einen Nutzernamen nach ihren wünschen erstellen und das Netzwerk wird darüber abstimmen.</string> - <string name="invitation_fee_noncontested_message">Der Person, die du diese Einladung sendest, kann einen Nutzernamen beanspruchen der die Nummer 2-9 beinhaltet und mehr als 20 Zeichen hat.</string> + <string name="invitation_fee_contested_message">Der Person, der du diese Einladung sendest, kann einen Nutzernamen nach ihren Wünschen erstellen und das Netzwerk wird darüber abstimmen.</string> + <string name="invitation_fee_noncontested_message">Der Person, die du diese Einladung sendest, kann einen Nutzernamen beanspruchen, der die Nummern 2-9 beinhaltet und mehr als 20 Zeichen hat.</string>wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt-2202-2217 (1)
2202-2217: Canceling mid-batch can interrupt transaction processing.Canceling
handleContactPaymentsJobinterrupts theforEachmid-iteration. While accumulated transactions won't be lost from the pending list (they're captured atomically before processing), theirupdateFrequentContacts()calls can be aborted if a new transaction arrives during batch processing.Consider using a Flow-based debounce pattern to avoid cancelling in-flight batches, which would prevent interrupting the processing of accumulated transactions and provide a more reactive architecture.
🧹 Nitpick comments (3)
wallet/res/values-id/strings-extra.xml (1)
335-337: LGTM with optional consistency note.The consolidated welcome screen titles are well-translated. Minor observation: Line 337 uses lowercase "anda" while other strings in this file use capitalized "Anda" (the polite/formal form). Consider "Dash Anda" for consistency with the rest of the file, though both forms are acceptable in modern UI text.
,
wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt (1)
429-432: Inconsistent null-safe call operator usage reduces readability.The condition relies on short-circuit evaluation to avoid NPE: line 430 uses
errorMessage?.contains(...)while line 431 useserrorMessage.contains(...)without the safe call. While technically safe (the second part is only evaluated whenerrorMessageis non-null), this is subtle and error-prone for future maintenance.Consider using consistent safe-call operators for clarity:
♻️ Suggested improvement
blockchainIdentityData.creationState == IdentityCreationState.REQUESTED_NAME_CHECKING && - (errorMessage?.contains("invalid quorum: quorum not found") != true || - errorMessage.contains("invalid peer certificate: certificate expired") == true) + (errorMessage?.contains("invalid quorum: quorum not found") != true || + errorMessage?.contains("invalid peer certificate: certificate expired") == true)wallet/androidTest/de/schildbach/wallet/security/SecurityGuardMultiThreadingTest.kt (1)
910-1043: Commented-out test code should use@Ignoreannotation or be removed.This test validating IV backup and recovery functionality has been entirely commented out. Commented-out code clutters the codebase and may become stale. If the test is temporarily disabled, use
@Ignore("reason")annotation to document why. If the test is no longer needed, remove it entirely.♻️ Suggested approach if test needs to remain disabled
-// `@Test` -// fun testIvBackupAndRecovery() { -// val testPassword = "TestPasswordForIvRecovery" -// ... -// } + `@Ignore`("IV backup recovery test disabled pending implementation refinement - see PR `#1458`") + `@Test` + fun testIvBackupAndRecovery() { + // Test implementation... + }
abaranouski
left a comment
There was a problem hiding this comment.
verified including regression testing
Issue being fixed or feature implemented
v11.6 Release and related fixes
Related PR's and Dependencies
None
Screenshots / Videos
How Has This Been Tested?
Checklist:
Summary by CodeRabbit
Release Notes v11.6.0
New Features
Improvements
Localization
✏️ Tip: You can customize this high-level summary in your review settings.