From 49a50ea4a9b27010a56e2255021dc2a76bd06e21 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 6 Dec 2023 09:04:05 +0000 Subject: [PATCH] fix insane parameters --- .../attestation/slotattestation/testframework_test.go | 6 +++++- .../seatmanager/topstakers/topstakers_test.go | 1 - .../sybilprotectionv1/performance/testsuite_test.go | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/protocol/engine/attestation/slotattestation/testframework_test.go b/pkg/protocol/engine/attestation/slotattestation/testframework_test.go index 624158d66..f99a5344f 100644 --- a/pkg/protocol/engine/attestation/slotattestation/testframework_test.go +++ b/pkg/protocol/engine/attestation/slotattestation/testframework_test.go @@ -69,7 +69,11 @@ func NewTestFramework(test *testing.T) *TestFramework { return accounts.SelectCommittee(members...), true } - t.testAPI = iotago.V3API(iotago.NewV3TestProtocolParameters()) + t.testAPI = iotago.V3API( + iotago.NewV3TestProtocolParameters( + iotago.WithLivenessOptions(5, 5, 1, 2, 8), + ), + ) t.apiProvider = iotago.SingleVersionProvider(t.testAPI) diff --git a/pkg/protocol/sybilprotection/seatmanager/topstakers/topstakers_test.go b/pkg/protocol/sybilprotection/seatmanager/topstakers/topstakers_test.go index 317a1e824..43b53a0c2 100644 --- a/pkg/protocol/sybilprotection/seatmanager/topstakers/topstakers_test.go +++ b/pkg/protocol/sybilprotection/seatmanager/topstakers/topstakers_test.go @@ -23,7 +23,6 @@ import ( func TestTopStakers_InitializeCommittee(t *testing.T) { var testAPI = iotago.V3API( iotago.NewV3TestProtocolParameters( - iotago.WithSupplyOptions(2_779_530_283_277_761, 0, 0, 0, 0, 0, 0), iotago.WithWorkScoreOptions(0, 1, 0, 0, 0, 0, 0, 0, 0, 0), // all zero except block offset gives all blocks workscore = 1 iotago.WithTargetCommitteeSize(3), ), diff --git a/pkg/protocol/sybilprotection/sybilprotectionv1/performance/testsuite_test.go b/pkg/protocol/sybilprotection/sybilprotectionv1/performance/testsuite_test.go index 4e495332e..ab1150c36 100644 --- a/pkg/protocol/sybilprotection/sybilprotectionv1/performance/testsuite_test.go +++ b/pkg/protocol/sybilprotection/sybilprotectionv1/performance/testsuite_test.go @@ -42,6 +42,7 @@ func NewTestSuite(t *testing.T) *TestSuite { api: iotago.V3API( iotago.NewV3TestProtocolParameters( iotago.WithTimeProviderOptions(0, time.Now().Unix(), 10, 3), + iotago.WithLivenessOptions(5, 5, 1, 2, 3), iotago.WithRewardsOptions(8, 8, 11, 2, 1), ), ),