@@ -37,7 +37,7 @@ func init() {
37
37
}
38
38
39
39
func makeTimeoutEvent () timeoutEvent {
40
- return timeoutEvent {T : timeout , RandomEntropy : crypto .RandUint64 ()}
40
+ return timeoutEvent {T : timeout , RandomEntropy : crypto .RandUint64 (), Proto : ConsensusVersionView { Version : protocol . ConsensusCurrentVersion } }
41
41
}
42
42
43
43
func generateProposalEvents (t * testing.T , player player , accs testAccountData , f testBlockFactory , ledger Ledger ) (voteBatch []event , payloadBatch []event , lowestProposal proposalValue ) {
@@ -3240,7 +3240,7 @@ func TestPlayerAlwaysResynchsPinnedValue(t *testing.T) {
3240
3240
func TestPlayerRetainsReceivedValidatedAtOneSample (t * testing.T ) {
3241
3241
partitiontest .PartitionTest (t )
3242
3242
3243
- version := protocol .ConsensusFuture
3243
+ version := protocol .ConsensusCurrentVersion
3244
3244
const r = round (20239 )
3245
3245
const p = period (131 )
3246
3246
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
@@ -3262,7 +3262,7 @@ func TestPlayerRetainsReceivedValidatedAtOneSample(t *testing.T) {
3262
3262
func TestPlayerRetainsReceivedValidatedAtCredentialHistory (t * testing.T ) {
3263
3263
partitiontest .PartitionTest (t )
3264
3264
3265
- version := protocol .ConsensusFuture
3265
+ version := protocol .ConsensusCurrentVersion
3266
3266
const r = round (20239 )
3267
3267
const p = period (0 )
3268
3268
pWhite , pM , helper := setupP (t , r - credentialRoundLag - 1 , p , soft )
@@ -3301,7 +3301,7 @@ func TestPlayerRetainsReceivedValidatedAtCredentialHistory(t *testing.T) {
3301
3301
func TestPlayerRetainsEarlyReceivedValidatedAtOneSample (t * testing.T ) {
3302
3302
partitiontest .PartitionTest (t )
3303
3303
3304
- version := protocol .ConsensusFuture
3304
+ version := protocol .ConsensusCurrentVersion
3305
3305
const r = round (20239 )
3306
3306
const p = period (0 )
3307
3307
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
@@ -3339,7 +3339,7 @@ func testClockForRound(t *testing.T, pWhite *player, fixedDur time.Duration, cur
3339
3339
func TestPlayerRetainsLateReceivedValidatedAtOneSample (t * testing.T ) {
3340
3340
partitiontest .PartitionTest (t )
3341
3341
3342
- version := protocol .ConsensusFuture
3342
+ version := protocol .ConsensusCurrentVersion
3343
3343
const r = round (20239 )
3344
3344
const p = period (0 )
3345
3345
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
@@ -3382,7 +3382,7 @@ func TestPlayerRetainsReceivedValidatedAtForHistoryWindowLateBetter(t *testing.T
3382
3382
}
3383
3383
3384
3384
func testPlayerRetainsReceivedValidatedAtForHistoryWindow (t * testing.T , addBetterLate bool ) {
3385
- version := protocol .ConsensusFuture
3385
+ version := protocol .ConsensusCurrentVersion
3386
3386
const r = round (20239 )
3387
3387
const p = period (0 )
3388
3388
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
@@ -3449,7 +3449,7 @@ func testPlayerRetainsReceivedValidatedAtForHistoryWindow(t *testing.T, addBette
3449
3449
func TestPlayerRetainsReceivedValidatedAtPPOneSample (t * testing.T ) {
3450
3450
partitiontest .PartitionTest (t )
3451
3451
3452
- version , _ , configCleanup := createDynamicFilterConfig ( )
3452
+ version , _ , configCleanup := overrideConfigWithDynamicFilterParam ( true )
3453
3453
defer configCleanup ()
3454
3454
const r = round (20239 )
3455
3455
const p = period (0 )
@@ -3505,7 +3505,7 @@ func TestPlayerRetainsReceivedValidatedAtPPOneSample(t *testing.T) {
3505
3505
func TestPlayerRetainsEarlyReceivedValidatedAtPPOneSample (t * testing.T ) {
3506
3506
partitiontest .PartitionTest (t )
3507
3507
3508
- version , _ , configCleanup := createDynamicFilterConfig ( )
3508
+ version , _ , configCleanup := overrideConfigWithDynamicFilterParam ( true )
3509
3509
defer configCleanup ()
3510
3510
3511
3511
const r = round (20239 )
@@ -3559,7 +3559,7 @@ func TestPlayerRetainsEarlyReceivedValidatedAtPPOneSample(t *testing.T) {
3559
3559
func TestPlayerRetainsLateReceivedValidatedAtPPOneSample (t * testing.T ) {
3560
3560
partitiontest .PartitionTest (t )
3561
3561
3562
- version , _ , configCleanup := createDynamicFilterConfig ( )
3562
+ version , _ , configCleanup := overrideConfigWithDynamicFilterParam ( true )
3563
3563
defer configCleanup ()
3564
3564
const r = round (20239 )
3565
3565
const p = period (0 )
@@ -3613,7 +3613,7 @@ func TestPlayerRetainsLateReceivedValidatedAtPPOneSample(t *testing.T) {
3613
3613
func TestPlayerRetainsReceivedValidatedAtPPForHistoryWindow (t * testing.T ) {
3614
3614
partitiontest .PartitionTest (t )
3615
3615
3616
- version := protocol .ConsensusFuture
3616
+ version := protocol .ConsensusCurrentVersion
3617
3617
const r = round (20239 )
3618
3618
const p = period (0 )
3619
3619
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
@@ -3655,7 +3655,7 @@ func TestPlayerRetainsReceivedValidatedAtAVPPOneSample(t *testing.T) {
3655
3655
partitiontest .PartitionTest (t )
3656
3656
3657
3657
// create a protocol version where dynamic lambda is enabled
3658
- version , _ , configCleanup := createDynamicFilterConfig ( )
3658
+ version , _ , configCleanup := overrideConfigWithDynamicFilterParam ( true )
3659
3659
defer configCleanup ()
3660
3660
const r = round (20239 )
3661
3661
const p = period (0 )
@@ -3710,7 +3710,7 @@ func TestPlayerRetainsReceivedValidatedAtAVPPOneSample(t *testing.T) {
3710
3710
func TestPlayerRetainsEarlyReceivedValidatedAtAVPPOneSample (t * testing.T ) {
3711
3711
partitiontest .PartitionTest (t )
3712
3712
3713
- version := protocol .ConsensusFuture
3713
+ version := protocol .ConsensusCurrentVersion
3714
3714
const r = round (20239 )
3715
3715
const p = period (0 )
3716
3716
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
@@ -3729,7 +3729,7 @@ func TestPlayerRetainsEarlyReceivedValidatedAtAVPPOneSample(t *testing.T) {
3729
3729
require .Equal (t , pWhite .lowestCredentialArrivals .writePtr , 0 )
3730
3730
3731
3731
// create a protocol version where dynamic filter is enabled
3732
- version , _ , configCleanup := createDynamicFilterConfig ( )
3732
+ version , _ , configCleanup := overrideConfigWithDynamicFilterParam ( true )
3733
3733
defer configCleanup ()
3734
3734
3735
3735
// send votePresent message (mimicking the first AV message validating)
@@ -3767,7 +3767,7 @@ func TestPlayerRetainsEarlyReceivedValidatedAtAVPPOneSample(t *testing.T) {
3767
3767
func TestPlayerRetainsLateReceivedValidatedAtAVPPOneSample (t * testing.T ) {
3768
3768
partitiontest .PartitionTest (t )
3769
3769
3770
- version := protocol .ConsensusFuture
3770
+ version := protocol .ConsensusCurrentVersion
3771
3771
const r = round (20239 )
3772
3772
const p = period (0 )
3773
3773
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
@@ -3786,7 +3786,7 @@ func TestPlayerRetainsLateReceivedValidatedAtAVPPOneSample(t *testing.T) {
3786
3786
require .Equal (t , pWhite .lowestCredentialArrivals .writePtr , 0 )
3787
3787
3788
3788
// create a protocol version where dynamic filter is enabled
3789
- version , _ , configCleanup := createDynamicFilterConfig ( )
3789
+ version , _ , configCleanup := overrideConfigWithDynamicFilterParam ( true )
3790
3790
defer configCleanup ()
3791
3791
3792
3792
// send votePresent message (mimicking the first AV message validating)
@@ -3821,7 +3821,7 @@ func TestPlayerRetainsLateReceivedValidatedAtAVPPOneSample(t *testing.T) {
3821
3821
func TestPlayerRetainsReceivedValidatedAtAVPPHistoryWindow (t * testing.T ) {
3822
3822
partitiontest .PartitionTest (t )
3823
3823
3824
- version := protocol .ConsensusFuture
3824
+ version := protocol .ConsensusCurrentVersion
3825
3825
const r = round (20239 )
3826
3826
const p = period (0 )
3827
3827
pWhite , pM , helper := setupP (t , r - 1 , p , soft )
0 commit comments