-
Notifications
You must be signed in to change notification settings - Fork 324
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
[staking] enable CandidateTransferOwnership at CandidateIdentifiedByOwner feature #4275
[staking] enable CandidateTransferOwnership at CandidateIdentifiedByOwner feature #4275
Conversation
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.
0ef74d0
to
155ee80
Compare
155ee80
to
90fd66d
Compare
@@ -98,3 +98,10 @@ func (p *Protocol) validateCandidateActivate(ctx context.Context, act *action.Ca | |||
} | |||
return nil | |||
} | |||
|
|||
func (p *Protocol) validateCandidateTransferOwnershipAction(ctx context.Context, act *action.CandidateTransferOwnership) error { | |||
if protocol.MustGetFeatureCtx(ctx).CandidateIdentifiedByOwner { |
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.
add TODO: can be removed after hard-fork
e2etest/native_staking_test.go
Outdated
@@ -491,6 +545,7 @@ func TestNativeStaking(t *testing.T) { | |||
cfg.Genesis.FbkMigrationBlockHeight = 1 | |||
cfg.Genesis.TsunamiBlockHeight = 0 | |||
cfg.Genesis.EndorsementWithdrawWaitingBlocks = 10 | |||
cfg.Genesis.ToBeEnabledBlockHeight = 0 |
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.
should be a larger number to enable the feature?
e2etest/native_staking_test.go
Outdated
@@ -491,6 +545,7 @@ func TestNativeStaking(t *testing.T) { | |||
cfg.Genesis.FbkMigrationBlockHeight = 1 | |||
cfg.Genesis.TsunamiBlockHeight = 0 |
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.
each hard-fork height needs to be > previous ones
Quality Gate failedFailed conditions |
Description
Make up missing parts for CandidateTransferOwnership
Related PR:
#4236
#4239
#4245
#4250
Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: