Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

fix(wallet): Fix Transaction Details#894

Merged
coreyphillips merged 1 commit intomasterfrom
fix-tx-details
Feb 17, 2023
Merged

fix(wallet): Fix Transaction Details#894
coreyphillips merged 1 commit intomasterfrom
fix-tx-details

Conversation

@coreyphillips
Copy link
Copy Markdown
Collaborator

@coreyphillips coreyphillips commented Feb 17, 2023

This PR:

  • Updates getInputData method to include the vout index as part of the reference object key.
  • Added combinedAddressObj for more efficient checks when handling a large number of inputs/outputs.
  • Moved the txid check logic higher up in formatTransactions.
  • Added replaceStoredTransactions to updateTransactions method.
  • Added updateTransactions to the "Rescan Addresses" button.

Notes:

  • Previously, getInputData was not taking into account the vout index when returning input data. So if a user had multiple inputs that were sourced from the same transaction, it would replace the information at that tx_hash index. Only returning one instead of all the desired inputs. This would result in the miscalculation when formatting and storing the transaction for later reference.
  • User's that have encountered this issue can navigate to "Settings->Advanced->Rescan Addresses" to update their old transaction details.

Updates getInputData method to include the vout index as part of the reference object key.
Added combinedAddressObj for more efficient checks when handling large number of outputs.
Moved the txid check logic higher up in formatTransactions.
Added replaceStoredTransactions to updateTransactions method.
Added updateTransactions to the "Rescan Addresses" button.
@coreyphillips coreyphillips requested a review from pwltr February 17, 2023 18:16
@coreyphillips coreyphillips merged commit 08fb199 into master Feb 17, 2023
@coreyphillips coreyphillips deleted the fix-tx-details branch February 17, 2023 20:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants