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

Make processing burningman accounting data optional #6644

Conversation

HenrikJannsen
Copy link
Collaborator

Processing burningman accounting data an take quite some time and CPU. As most Bisq users are likely not interested in those data, this PR deactivates it by default.
Users who are interested in that data can enable it in the settings at the DAO section (requires restart) or when selecting a BM in the table they get a popup to enable it.
If not enabled the UI shows a "(accounting data not updated)" post fix to the "Selected contributor" header. The displayed data is the one from the last update or the one shipped by the release.
If enabled and still processing data we show a "(still processing data...)" post fix to the "Selected contributor" header.
We do not use a busy animation as this is quite CPU intense.
Once all data is processed the post fix is removed.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
Add popup when selecting a burningman to ask for enabling processing

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
… set.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
…t is in progress.

We use a postfix to the header title and not a busy animation, as the busy animation is quite CPU intense.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

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

utACK

@sqrrm sqrrm merged commit 8b9619f into bisq-network:master Apr 10, 2023
@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.11 milestone Apr 15, 2023
@HenrikJannsen HenrikJannsen deleted the make_processing_burningman_accounting_data_optional branch May 4, 2023 08:20
@@ -160,6 +164,10 @@ public void onParseBlockChainComplete() {

@Override
public void addListeners() {
if (!preferences.isProcessBurningManAccountingData()) {
Copy link

Choose a reason for hiding this comment

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

A problem (bug) here is it prevents seednodes from processing Accounting data! 😱

Copy link
Contributor

Choose a reason for hiding this comment

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

I can confirm the bug!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Saw it too late, but seem its fixed by @jmacxx already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants