Skip to content

Commit

Permalink
Merge branch 'implement-acp-77-sov-validators-state' into implement-a…
Browse files Browse the repository at this point in the history
…cp-77-deactivation
  • Loading branch information
StephenButtolph authored Oct 24, 2024
2 parents fb7f564 + d482de8 commit fc27346
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
## How this works

## How this was tested

## Need to be documented in RELEASES.md?
9 changes: 5 additions & 4 deletions vms/platformvm/state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ func TestState_writeStakers(t *testing.T) {
expectedCurrentValidator: primaryNetworkCurrentValidatorStaker,
expectedCurrentDelegators: []*Staker{primaryNetworkCurrentDelegatorStaker},
expectedValidatorSetOutput: &validators.GetValidatorOutput{
NodeID: primaryNetworkCurrentDelegatorStaker.NodeID,
NodeID: primaryNetworkCurrentValidatorStaker.NodeID,
PublicKey: primaryNetworkCurrentValidatorStaker.PublicKey,
Weight: primaryNetworkCurrentDelegatorStaker.Weight + primaryNetworkCurrentValidatorStaker.Weight,
Weight: primaryNetworkCurrentValidatorStaker.Weight + primaryNetworkCurrentDelegatorStaker.Weight,
},
expectedWeightDiff: &ValidatorWeightDiff{
Decrease: false,
Expand Down Expand Up @@ -775,14 +775,15 @@ func TestState_ApplyValidatorDiffs(t *testing.T) {
sk, err := bls.NewSecretKey()
require.NoError(err)

timeOffset := time.Duration(i) * time.Second
primaryStakers[i] = Staker{
TxID: ids.GenerateTestID(),
NodeID: ids.GenerateTestNodeID(),
PublicKey: bls.PublicFromSecretKey(sk),
SubnetID: constants.PrimaryNetworkID,
Weight: uint64(i + 1),
StartTime: startTime.Add(time.Duration(i) * time.Second),
EndTime: endTime.Add(time.Duration(i) * time.Second),
StartTime: startTime.Add(timeOffset),
EndTime: endTime.Add(timeOffset),
PotentialReward: uint64(i + 1),
}
}
Expand Down
2 changes: 2 additions & 0 deletions x/sync/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,8 @@ func Test_Sync_Result_Correct_Root_With_Sync_Restart(t *testing.T) {
}

func Test_Sync_Result_Correct_Root_Update_Root_During(t *testing.T) {
t.Skip("FLAKY")

require := require.New(t)

now := time.Now().UnixNano()
Expand Down

0 comments on commit fc27346

Please sign in to comment.