Skip to content

fix: withdrawal (asset unlock) txes to use Platform Quorum on RegTest - #5800

Merged
PastaPastaPasta merged 10 commits into
dashpay:developfrom
knst:fix-asset-lock-quorum
Jan 7, 2024
Merged

PastaPastaPasta merged 10 commits into
dashpay:developfrom
knst:fix-asset-lock-quorum

Conversation

@knst

@knst knst commented Jan 5, 2024 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Asset Unlock tx uses platform's quorum on devnets, testnet, mainnet, but still quorum type "Test (100)" on Reg Tests
That's part II PR, prior work is here: #5618

What was done?

  • Removed consensus.llmqTypeAssetLocks which has been kept only for RegTest - use consensus.llmqTypePlatform instead.
  • Functional test feature_asset_locks.py uses llmq_type_test = 106 instead llmq_type_test = 100 for asset unlock tx
  • there's 4 MNs + 3 evo nodes instead 3 MNs as before: evo nodes requires to have IS to be active

How Has This Been Tested?

Run unit/functional tests

Breaking Changes

Asset Unlock tx uses correct quorum "106 llmq_test_platform" on reg test instead "100 llmq_test"

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 changed the title fix: WIP WIP withtrawal (asset unlock) txes to use Platform Quorum on RegTest fix: withdrawal (asset unlock) txes to use Platform Quorum on RegTest Jan 5, 2024
@knst knst added this to the 20.1 milestone Jan 5, 2024
@knst
knst marked this pull request as ready for review January 5, 2024 17:28
@knst knst added the guix-build label Jan 5, 2024
@PastaPastaPasta

Copy link
Copy Markdown
Member

Guix Automation has began to build this PR tagged as v20.1.0-devpr5800.d6909f8f. A new comment will be made when the image is pushed.

@knst knst removed the guix-build label Jan 5, 2024
@knst

knst commented Jan 5, 2024

Copy link
Copy Markdown
Collaborator Author

guix flag to get a docker image

@PastaPastaPasta

Copy link
Copy Markdown
Member

Guix Automation has completed; a release should be present here: https://github.com/dashpay/dash-dev-branches/releases/tag/v20.1.0-devpr5800.d6909f8f. The image should be on dockerhub soon.

@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

@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 for squash merge; this is more of a refactor than a fix imo; but I guess it changes behavior on regtest so it's fine. 👍


self.mine_cycle_quorum(llmq_type_name='llmq_test_dip0024', llmq_type=103)

for i in range(3):

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.

Suggested change
for i in range(3):
for _ in range(3):

coin = coins.pop()
asset_lock_tx = self.create_assetlock(coin, locked_1, pubkey)


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.

Suggested change

@knst

knst commented Jan 6, 2024

Copy link
Copy Markdown
Collaborator Author

this is more of a refactor than a fix imo;

All changes here are necessary here to change quorum.
Changing quorum from trst to platform requires Evo nodes.
Evo nodes requires enabling instant sent to create them.
Instant send requires 4 rotation quorum (see TODO).

That's almost minimal fix when commits are squashed, so, that's a fix, not a refactoring.

@PastaPastaPasta
PastaPastaPasta merged commit cf12572 into dashpay:develop Jan 7, 2024
knst added a commit to knst/dash that referenced this pull request Jan 10, 2024
…dashpay#5800)

## Issue being fixed or feature implemented
Asset Unlock tx uses platform's quorum on devnets, testnet, mainnet, but
still quorum type "Test (100)" on Reg Tests
That's part II PR, prior work is here:
dashpay#5618

## What was done?
- Removed `consensus.llmqTypeAssetLocks` which has been kept only for
RegTest - use `consensus.llmqTypePlatform` instead.
- Functional test `feature_asset_locks.py` uses `llmq_type_test = 106`
instead `llmq_type_test = 100` for asset unlock tx
- there's 4 MNs + 3 evo nodes instead 3 MNs as before: evo nodes
requires to have IS to be active


## How Has This Been Tested?
Run unit/functional tests


## Breaking Changes
Asset Unlock tx uses correct quorum "106 llmq_test_platform" on reg test
instead "100 llmq_test"

## Checklist:
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone
@UdjinM6 UdjinM6 modified the milestones: 20.1, 20.0.4 Jan 10, 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