Skip to content

Commit

Permalink
feat: niporep: multi-sector onboarding through UnmanagedMiner
Browse files Browse the repository at this point in the history
* Test various multi-sector cases with niporep
* UnmanagedMiner can now onboard multiple sectors for one miner and
  manage PoSt for all of them
  • Loading branch information
rvagg authored and ribasushi committed Aug 20, 2024
1 parent f1ddd66 commit f95eeb1
Show file tree
Hide file tree
Showing 4 changed files with 1,527 additions and 814 deletions.
4 changes: 2 additions & 2 deletions itests/kit/ensemble.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ func (n *Ensemble) Miner(minerNode *TestMiner, full *TestFullNode, opts ...NodeO
return n
}

func (n *Ensemble) UnmanagedMiner(full *TestFullNode, opts ...NodeOpt) (*TestUnmanagedMiner, *Ensemble) {
func (n *Ensemble) UnmanagedMiner(ctx context.Context, full *TestFullNode, opts ...NodeOpt) (*TestUnmanagedMiner, *Ensemble) {
actorAddr, err := address.NewIDAddress(genesis2.MinerStart + n.minerCount())
require.NoError(n.t, err)

minerNode := NewTestUnmanagedMiner(n.t, full, actorAddr, n.options.mockProofs, opts...)
minerNode := NewTestUnmanagedMiner(ctx, n.t, full, actorAddr, n.options.mockProofs, opts...)
n.AddInactiveUnmanagedMiner(minerNode)
return minerNode, n
}
Expand Down
Loading

0 comments on commit f95eeb1

Please sign in to comment.