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: new fork 'withdrawals' and fixes for asset unlock signature verification #6279

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

knst
Copy link
Collaborator

@knst knst commented Sep 18, 2024

it includes also changes from #6269 #6275 to reduce conflicts in future

Issue being fixed or feature implemented

https://github.com/dashpay/dash-issues/issues/83

What was done?

Introduces new fork "withdrawals" which let Asset Unlock be valid for any active quorum + 1 extra inactive (in opposite of hard-coded 2 of them).

How Has This Been Tested?

See new test section test_withdrawals_fork in functional test feature_asset_locks.py

Breaking Changes

  • new fork "withdrawals"
  • new logic of validation of Asset Unlock transactions's signature. Even no asset-unlock is mined yet, previous version of clients will refuse blocks which is fine for current system

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

@knst knst added this to the 22 milestone Sep 18, 2024
@knst knst changed the title WIP: fix withdrawal quorums fix: new fork 'withdrawals' and fixes for asset unlock signature verification Sep 19, 2024
Comment on lines +213 to +214
consensus.vDeployments[Consensus::DEPLOYMENT_WITHDRAWALS].nStartTime = 1704067200; // January 1, 2024
consensus.vDeployments[Consensus::DEPLOYMENT_WITHDRAWALS].nTimeout = 1767225600; // January 1, 2026
Copy link
Collaborator

Choose a reason for hiding this comment

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

Start time and timeout values for each network should be updated to something more relevant before merging

Copy link

This pull request has conflicts, please rebase.

@PastaPastaPasta
Copy link
Member

Needs rebase?

@knst
Copy link
Collaborator Author

knst commented Sep 27, 2024

Needs rebase?

it depends on #6275 (bury mn_rr) also, which is not merged yet; will rebase after

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