fix single tx history display for SIA coins#3405
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ 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.
💡 Codex Review
https://github.com/KomodoPlatform/komodo-wallet/blob/9dff1144db3e215d834c6fc8f7b833c6d6cec031/lib/bloc/transaction_history/transaction_history_bloc.dart#L111-L114
Update existing transaction using wrong key
After switching the in‑memory map to use _txKey so Sia transactions can be keyed by txHash or id instead of the empty internalId, the merge logic still writes back with byId[sanitized.internalId] = .... When internalId is blank (the case this commit targets), existing is read from byId[txKey] but the update is stored under the empty string, leaving the original entry untouched and adding a duplicate value. Subsequent batches that refresh confirmations will keep showing the stale copy keyed by txHash, while the latest data sits under '', so users may see duplicated transactions or confirmations that never advance. The update should use the same txKey that was used to look up the existing entry.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
is this deployed somewhere? |
set the internal id correctly in transaction details for sia history fetching loop this should fix what GLEECBTC/gleec-wallet#3405 is trying to fix but from KDF side.
takenagain
left a comment
There was a problem hiding this comment.
This was resolved in KDF #2691, and SC/SCZEN transactions appear as expected for me in #3398 (once confirmed). I believe this PR can be closed, leaving internal_id as a unique identifier for transactions in the wallet and the SDK (luckily only one reference in each, so changing this behaviour is doable).
Deployments only run for PRs into specified branch prefixes, like |
confirmed, closing |
Fixes bug where only a single tx entry would appear in SIA coin page tx history.
To test: