Conversation
WalkthroughThe changes update the logic for fetching unconfirmed detected transactions in the wallet's SQLite database by ensuring uniqueness across multiple queries and broadening the criteria for transactions with missing mined height. Corresponding tests are updated to set chain metadata, and a new field is added to the test interface for direct database access. Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Case
participant WalletDB as WalletDatabase
participant SqliteDB as TransactionServiceSqliteDatabase
Test->>WalletDB: Set chain metadata (tip height)
Test->>SqliteDB: fetch_unconfirmed_detected_transactions()
SqliteDB->>SqliteDB: Query transactions by status
SqliteDB->>SqliteDB: Insert transactions into HashMap (by tx_id)
SqliteDB->>Test: Return unique unconfirmed transactions
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (7)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Test Results (CI) 3 files 126 suites 55m 58s ⏱️ Results for commit 6c0e1ca. |
Test Results (Integration tests) 2 files 1 errors 1 suites 26m 1s ⏱️ For more details on these parsing errors and failures, see this check. Results for commit 6c0e1ca. |
* development: (607 commits) Wallet GRPC port comment fix from 18142 to 18143 (tari-project#7221) feat: integrated address support for Ledger (tari-project#7198) chore: new release v4.1.1-pre.0 (tari-project#7211) fix: migration can now correctly resume after stopping (tari-project#7210) fix: only revalidated rejected transactions on startup (tari-project#7209) fix: add filtering flag back (tari-project#7208) feat: improve wallet balance checks from external clients (tari-project#7207) feat!: update grpc supply query (tari-project#7137) docs: Updated API GRPC and Exchange Guide (tari-project#7205) chore: new release v4.4.0-pre.0 (tari-project#7202) feat: update base node proto to search bytes (tari-project#7201) feat: full PayRef implementation (tari-project#7154) test: add ffi cucumber wallet balance test (tari-project#7189) chore: fix tests (tari-project#7196) fix(network-discovery): add back idle event handling (tari-project#7194) Update SECURITY.md (tari-project#7193) fix: transaction manager service unmined lookup (tari-project#7192) fix: wallet ffi database name mismatch for mobile wallet (tari-project#7191) fix: payment_id deserialize (tari-project#7187) fix: remove code for deleting stale peers (tari-project#7184) ...
Description
Fixes the tests and improves performance by not duplicating transactions
Summary by CodeRabbit
Bug Fixes
Tests