Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Oct 27, 2024

Issue being fixed or feature implemented

A few things to note:

  1. we shouldn't rely on bPrune cause it can be overridden via cmd-line
  2. addOverriddenOption is used to highlight that there are GUI options that were overridden via cmd-line and neither -disablegovernance nor -txindex override anything, we simply set them to correct values here.
  3. we should do all that in SetPruneEnabled case that's the central point for GUI prune option logic

fixes #6366

#6367 alternative

What was done?

How Has This Been Tested?

./src/qt/dash-qt --regtest --resetguisettings (could also add --txindex=1 and/or --disablegovernance=0), check "Limit ..." box, click OK and confirm it continues with no errors (but with a warning about disabled governance, that's by design)

close qt and check 2 more things:

  1. ./src/qt/dash-qt --regtest should have a warning about disabled governance
  2. ./src/qt/dash-qt --regtest --prune=0 should have no warning about disabled governance (not true on develop)

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

A few things to note:
1. we shouldn't rely on `bPrune` cause it can be overridden via cmd-line
2. `addOverriddenOption` is used to highlight that there are GUI options that were overridden via cmd-line and neither `-disablegovernance` nor `-txindex` override anything, we simply set them to correct values here.
3. we should do all that in `SetPruneEnabled` case that's the central point for GUI prune option logic
@UdjinM6 UdjinM6 added this to the 22 milestone Oct 27, 2024
@PastaPastaPasta PastaPastaPasta requested a review from kwvg October 28, 2024 03:32
Copy link
Collaborator

@kwvg kwvg left a comment

Choose a reason for hiding this comment

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

ACK 2d99b2c

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK 2d99b2c

@PastaPastaPasta PastaPastaPasta merged commit 93cfd5b into dashpay:develop Oct 29, 2024
30 of 37 checks passed
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.

bug: enabling pruning from initial launch causes crash due to "txindex"

3 participants