Skip to content

Commit

Permalink
fix insane parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberphysic4l committed Dec 6, 2023
1 parent 7dfdd64 commit 49a50ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
),
Expand Down

0 comments on commit 49a50ea

Please sign in to comment.