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

Drop User Burn Support #4378

Merged
merged 4 commits into from Feb 27, 2024
Merged

Drop User Burn Support #4378

merged 4 commits into from Feb 27, 2024

Conversation

8marz8
Copy link
Contributor

@8marz8 8marz8 commented Feb 14, 2024

Description

Removing UserBurnSupportOp definition and usage throughout the codebase as it's not fully implemented and used.

Applicable issues

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.41%. Comparing base (577b118) to head (7a83433).

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #4378      +/-   ##
==========================================
- Coverage   83.44%   83.41%   -0.03%     
==========================================
  Files         449      448       -1     
  Lines      325514   323911    -1603     
==========================================
- Hits       271632   270199    -1433     
+ Misses      53882    53712     -170     
Files Coverage Δ
stackslib/src/burnchains/burnchain.rs 81.88% <100.00%> (+0.24%) ⬆️
stackslib/src/burnchains/tests/burnchain.rs 99.87% <100.00%> (+0.08%) ⬆️
stackslib/src/burnchains/tests/mod.rs 94.08% <100.00%> (+0.25%) ⬆️
stackslib/src/chainstate/burn/db/processing.rs 87.39% <ø> (-0.01%) ⬇️
stackslib/src/chainstate/burn/db/sortdb.rs 91.86% <100.00%> (-0.22%) ⬇️
stackslib/src/chainstate/burn/distribution.rs 95.88% <ø> (-0.95%) ⬇️
stackslib/src/chainstate/burn/mod.rs 94.44% <ø> (+0.24%) ⬆️
.../chainstate/burn/operations/leader_block_commit.rs 96.08% <ø> (ø)
.../chainstate/burn/operations/leader_key_register.rs 97.27% <ø> (ø)
stackslib/src/chainstate/burn/operations/mod.rs 62.44% <ø> (+2.83%) ⬆️
... and 18 more

... and 20 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 577b118...7a83433. Read the comment docs.

@8marz8
Copy link
Contributor Author

8marz8 commented Feb 14, 2024

@jcnelson @kantai Should "StagingUserBurnSupport" also be deleted?

@8marz8 8marz8 force-pushed the chore/drop-user-burn-support branch from 3efd0d7 to 307723d Compare February 14, 2024 20:54
jcnelson
jcnelson previously approved these changes Feb 16, 2024
Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for taking care of this!

@jcnelson
Copy link
Member

Also, yes -- feel free to remove StagingUserBurnSupport. As long as CI passes, it should be fine.

@8marz8 8marz8 force-pushed the chore/drop-user-burn-support branch 2 times, most recently from 79d9754 to 1709882 Compare February 18, 2024 21:51
@8marz8 8marz8 marked this pull request as ready for review February 18, 2024 23:56
@8marz8 8marz8 force-pushed the chore/drop-user-burn-support branch from 1709882 to 7a0a060 Compare February 20, 2024 14:42
Copy link
Member

@kantai kantai left a comment

Choose a reason for hiding this comment

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

These changes look fine to me, but I do have a question, that's probably more for @jcnelson than @8marz8:

UserBurnSupport transactions are currently not considered for reward distribution or miner commitment distributions, however, they are parsed currently, correct? This would mean that they are included in the OpsHash and therefore ConsensusHash, meaning that any change to remove it from the OpsHash would need to be epoch-gated, right?

kantai
kantai previously approved these changes Feb 26, 2024
Copy link
Member

@kantai kantai left a comment

Choose a reason for hiding this comment

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

LGTM! I tested in a separate branch (because you can't test whether or not a UserBurn is parsed in this branch), and UserBurn ops are never parsed under 2.x consensus rules.

@jcnelson jcnelson self-requested a review February 26, 2024 20:35
@jferrant jferrant merged commit 708a3fc into next Feb 27, 2024
2 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.

None yet

4 participants