-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make the multi-value slice permanent #15414
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
base: develop
Are you sure you want to change the base?
Changes from all commits
4d60b1d
f98e0ab
3f384df
cb9fc5d
8c19251
10f8dfd
111633c
98df7a8
2464558
000cbde
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,7 @@ func TestFuzzEth1DataHasEnoughSupport_10000(t *testing.T) { | |
require.NoError(t, err) | ||
_, err = Eth1DataHasEnoughSupport(s, eth1data) | ||
_ = err | ||
fuzz.FreeMemory(i) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I missed this one and the ones below in #15395 |
||
} | ||
|
||
} | ||
|
@@ -319,6 +320,7 @@ func TestFuzzverifyDeposit_10000(t *testing.T) { | |
require.NoError(t, err) | ||
err = VerifyDeposit(s, deposit) | ||
_ = err | ||
fuzz.FreeMemory(i) | ||
} | ||
} | ||
|
||
|
@@ -382,5 +384,6 @@ func TestFuzzVerifyExit_10000(t *testing.T) { | |
_ = err | ||
err = VerifyExitAndSignature(val, s, ve) | ||
_ = err | ||
fuzz.FreeMemory(i) | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -561,17 +561,6 @@ func TestActiveValidatorIndices(t *testing.T) { | |
}, | ||
want: []primitives.ValidatorIndex{0, 2, 3}, | ||
},*/ | ||
{ | ||
name: "impossible_zero_validators", // Regression test for issue #13051 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is impossible to test. Validators are a multi-value slice and a non-nil value is created in |
||
args: args{ | ||
state: ðpb.BeaconState{ | ||
RandaoMixes: make([][]byte, params.BeaconConfig().EpochsPerHistoricalVector), | ||
Validators: make([]*ethpb.Validator, 0), | ||
}, | ||
epoch: 10, | ||
}, | ||
wantedErr: "state has nil validator slice", | ||
}, | ||
} | ||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
|
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.
See https://github.com/OffchainLabs/prysm/pull/15414/files#r2151969948.
SetValidators(nil)
is not an issue because the mvslice can handle it.