Skip to content

feat: remove DIP0020 requirement for OP_ since it is activated long time ago#6302

Merged
PastaPastaPasta merged 3 commits into
dashpay:developfrom
knst:refactor-dip-0020-simplify
Oct 15, 2024
Merged

feat: remove DIP0020 requirement for OP_ since it is activated long time ago#6302
PastaPastaPasta merged 3 commits into
dashpay:developfrom
knst:refactor-dip-0020-simplify

Conversation

@knst

@knst knst commented Oct 3, 2024

Copy link
Copy Markdown
Collaborator

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

UdjinM6 commented Oct 3, 2024

Copy link
Copy Markdown

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

Comment thread src/script/interpreter.h Outdated
@UdjinM6

UdjinM6 commented Oct 4, 2024

Copy link
Copy Markdown

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

@github-actions

github-actions Bot commented Oct 4, 2024

Copy link
Copy Markdown

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

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

light ACK 3fe6d145be9a453f80ab16acf567d629ec744744

@knst

knst commented Oct 6, 2024

Copy link
Copy Markdown
Collaborator Author

CI failure after rebase is unrelated, see #6315

@github-actions

github-actions Bot commented Oct 7, 2024

Copy link
Copy Markdown

This pull request has conflicts, please rebase.

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

utACK c8fd37d

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

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
@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