-
Notifications
You must be signed in to change notification settings - Fork 772
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
westend: SignedPhase
is a constant
#3646
Conversation
In preparation for the merkleized metadata, we need to ensure that constants are actually constant. If we want to test the unsigned phase we could for example just disable signed voter. Or we add some extra mechanism to the pallet to disable the signed phase from time to time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good. We will figure out another way to achieve this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we don't have a workaround in this PR yet,
and given that I think this value is actually kinda useless in the metadata,
and given that I like the testing property of this constant being such, ensuring our OCW code path is being regularly,
I suggest removing this from the metadata instead of this.
@niklasad1 if the staking-miner doesn't break, then we are good. I think it is literally the only application that might read this from the metadata.
If not resolved within the context of this PR, please make an issue about it. If a good workaround exists, it might be a good one for mentoring. |
My guess about this not being used in the staking miner was correct, so I suggest removing it from the metadata instead, as per the last commit. |
The staking miner is only using the This won't break the staking miner and I tested it right now as well. |
@bkchr why did you remove the I don't think it should be that hard to workaround though.... |
Because the fix that @kianenigma had done was incorrect :D Westend overwrites the SignedPhase, so only making UnsignedPhase not a constant doesn't solves my problem. I had really understood it like staking miner doesn't require any of them, but this was my misunderstanding. Sorry! |
In preparation for the merkleized metadata, we need to ensure that constants are actually constant. If we want to test the unsigned phase we could for example just disable signed voter. Or we add some extra mechanism to the pallet to disable the signed phase from time to time. --------- Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
In preparation for the merkleized metadata, we need to ensure that constants are actually constant. If we want to test the unsigned phase we could for example just disable signed voter. Or we add some extra mechanism to the pallet to disable the signed phase from time to time.