-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/btc handle replaced txs #9610
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
3 Skipped Deployments
|
6c09957
to
a066b27
Compare
@@ -138,7 +139,7 @@ export const CoinControlRow = ({ | |||
/> | |||
{utxo.blockHeight ? ( | |||
<Text ff="Inter|Medium" fontSize={3} color={"palette.text.shade50"}> | |||
{account.blockHeight - utxo.blockHeight + " confirmations"} | |||
{confirmations + ` confirmation${confirmations > 1 ? "s" : ""}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an intl library in use handling pluralization in multiple locales?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules (not used anywhere else in the codebase but still is polyfilled on LLM side with@formatjs/intl-pluralrules) but ideally this thing would move on to be fully internationalized in another PR.
|
β Checklist
npx changeset
was attached.π Description
When syncing Bitcoin accounts, it's possible to fetch multiple versions of the same transaction due to Replace-By-Fee (RBF). This can lead to:
Duplicate or conflicting operations in the UI
Displaying transactions that were never confirmed and already replaced
β What this PR does
removeReplaced
function to filter out replaced/unconfirmed Bitcoin transactionsHandles the following cases:
This PR also adds unit tests to cover
removeReplaced
Before/After
prbtcrbf.mov
β Context
π§ Checklist for the PR Reviewers