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 committed Jul 9, 2024
1 parent cb953b1 commit dcbebdb
Show file tree
Hide file tree
Showing 4 changed files with 1,525 additions and 813 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 dcbebdb

Please sign in to comment.