Skip to content

Conversation

@knst
Copy link
Collaborator

@knst knst commented Oct 3, 2024

Issue being fixed or feature implemented

it's alternate solution for #6299 to fix a crash reported #6256

What was done?

Removed code related to DIP0020 activation for various OP codes. DIP0020 is activated long time ago and no any historical blocks are violating rules, removing it's backwards compatible.

How Has This Been Tested?

Run unit and functional tests. See also changes in data for unit tests and removed functional test.
It also re-index mainnet and testnet successfully

src/qt/dash-qt  -reindex -assumevalid=0
src/qt/dash-qt -testnet -reindex -assumevalid=0

Also extra test is done with bitcoin#23590 - no crash with it in feature_dip0020_activation.py [modified assuming it is always activated]

Breaking Changes

N/A

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

@UdjinM6
Copy link

UdjinM6 commented Oct 3, 2024

I'm really surprised it's possible to just drop a flag like that.... will need to think/test a bit...

@UdjinM6
Copy link

UdjinM6 commented Oct 4, 2024

Couldn't think of any issues, seems to be a valid solution 👍 just one small suggestion, see above

@github-actions
Copy link

github-actions bot commented Oct 4, 2024

This pull request has conflicts, please rebase.

@knst knst force-pushed the refactor-dip-0020-simplify branch from bc8678f to 3fe6d14 Compare October 4, 2024 19:26
UdjinM6
UdjinM6 previously approved these changes Oct 4, 2024
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

light ACK 3fe6d14

@knst
Copy link
Collaborator Author

knst commented Oct 6, 2024

CI failure after rebase is unrelated, see #6315

@github-actions
Copy link

github-actions bot commented Oct 7, 2024

This pull request has conflicts, please rebase.

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK c8fd37d

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 c8fd37d

@PastaPastaPasta PastaPastaPasta merged commit 5318d68 into dashpay:develop Oct 15, 2024
35 of 36 checks passed
@knst knst deleted the refactor-dip-0020-simplify branch October 15, 2024 14:20
@UdjinM6 UdjinM6 modified the milestones: 21.2, 22 Oct 29, 2024
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.

3 participants