Skip to content

Block-Based Commit-Reveal Weight Masking for Deregistered UIDs#1862

Merged
sam0x17 merged 7 commits intodevnet-readyfrom
block-based-weight-mask-dereg-uids
Jul 17, 2025
Merged

Block-Based Commit-Reveal Weight Masking for Deregistered UIDs#1862
sam0x17 merged 7 commits intodevnet-readyfrom
block-based-weight-mask-dereg-uids

Conversation

@JohnReedV
Copy link
Contributor

@JohnReedV JohnReedV commented Jul 17, 2025

Description

Commit-Block-Based Commit-Reveal Weight Masking for Deregistered UIDs

Weights are masked whenever a validator still has an unrevealed commit whose commit_block predates the target miner’s latest registration block.

@JohnReedV JohnReedV added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Jul 17, 2025
Copy link
Collaborator

@shamil-gadelshin shamil-gadelshin left a comment

Choose a reason for hiding this comment

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

Looks good.

I left a couple of suggestions.

NetUid,
Twox64Concat,
u64, // epoch key
VecDeque<(
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do you think about the dedicated struct here? The struct comments could explain the meaning of these fields.

@sam0x17 sam0x17 merged commit 50b7fa8 into devnet-ready Jul 17, 2025
55 of 56 checks passed
This was referenced Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants