Skip to content

Commit

Permalink
Try 1:1 node:miner ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
masih committed Oct 15, 2024
1 parent 7c61db8 commit 071a459
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions itests/f3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,19 @@ func setupWithStaticManifest(t *testing.T, manif *manifest.Manifest, testBootstr
f3MOpt := kit.ConstructorOpts(node.Override(node.F3Participation, modules.F3Participation))

var (
n1, n2, n3 kit.TestFullNode
n1, n2, n3, n4 kit.TestFullNode
m1, m2, m3, m4 kit.TestMiner
)

ens := kit.NewEnsemble(t, kit.MockProofs()).
FullNode(&n1, kit.WithAllSubsystems(), f3NOpt).
FullNode(&n2, kit.WithAllSubsystems(), f3NOpt).
FullNode(&n3, kit.WithAllSubsystems(), f3NOpt).
FullNode(&n4, kit.WithAllSubsystems(), f3NOpt).
Miner(&m1, &n1, kit.WithAllSubsystems(), f3MOpt).
Miner(&m2, &n2, kit.WithAllSubsystems(), f3MOpt).
Miner(&m3, &n3, kit.WithAllSubsystems(), f3MOpt).
Miner(&m4, &n3, kit.WithAllSubsystems(), f3MOpt).
Miner(&m4, &n4, kit.WithAllSubsystems(), f3MOpt).
Start()

ens.InterconnectAll().BeginMining(blocktime)
Expand All @@ -285,7 +286,7 @@ func setupWithStaticManifest(t *testing.T, manif *manifest.Manifest, testBootstr

e := &testEnv{m: m, t: t, testCtx: ctx}
// in case we want to use more full-nodes in the future
e.minerFullNodes = []*kit.TestFullNode{&n1, &n2, &n3}
e.minerFullNodes = []*kit.TestFullNode{&n1, &n2, &n3, &n4}

// create manifest sender and connect to full-nodes
e.ms = e.newManifestSender(ctx, t, manifestServerHost, blocktime)
Expand Down

0 comments on commit 071a459

Please sign in to comment.