Skip to content
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(suite): fix coinjoin pausing with several ongoing sessions #6934

Merged
merged 3 commits into from
Nov 23, 2022

Conversation

dahaca
Copy link
Contributor

@dahaca dahaca commented Nov 16, 2022

Description

  • correctly handle CJ session pausing when several are ongoing

Related Issue

Resolve #6812

Screenshots:

Screen.Recording.2022-11-16.at.15.42.02.mov

import { COINJOIN_PHASE_MESSAGES } from '@suite-constants/coinjoin';
import {
calculateSessionProgress,
getPhaseTimerFormat,
getSessionDeadlineFormat,
} from '@wallet-utils/coinjoinUtils';
import { useDispatch } from 'react-redux';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's not a first usage, but would be nice to discuss what is the current preferred way https://www.notion.so/satoshilabs/Redux-b0a4c3b7e71b499a8d592fb44cd794fe#31445739321c401dbf1d2396ee4ad3bc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Far from the first one, I've been using it for several months, I think 😅 Also, the mobile team has been using it for a while. But we can definitely discuss it and compare pros and cons.

@@ -8,4 +8,4 @@

Resolve <!--- link the issue here -->

## Screenshots (if appropriate):
## Screenshots:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like totally unrelated to this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, I think this change is not really worth CI time...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree, that unrelated things should be in separate PRs. No need to change it for this PR, but for the future it's better not to save the CI time that much.

Copy link
Member

@matejkriz matejkriz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please rebase on develop and resolve conflicts

@matejkriz
Copy link
Member

@dahaca please check the failing unit test

@matejkriz matejkriz assigned dahaca and unassigned matejkriz Nov 23, 2022
@dahaca dahaca merged commit 2a0ccfb into develop Nov 23, 2022
@dahaca dahaca deleted the fix/pausing-cj branch November 23, 2022 12:58
@tsusanka tsusanka added the coinjoin Related to coinjoin feature label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coinjoin Related to coinjoin feature Roadmap: Product
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Incorrect wallet is paused when you run multiple instances of CoinJoin in one Trezor Suite.
4 participants