gofmt
This commit is contained in:
parent
a92099258b
commit
5ced1ab905
@ -47,9 +47,9 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid
|
||||
var maddr address.Address
|
||||
{
|
||||
constructorParams := &power.CreateMinerParams{
|
||||
Worker: m.Worker,
|
||||
Worker: m.Worker,
|
||||
SectorSize: m.SectorSize,
|
||||
Peer: m.PeerId,
|
||||
Peer: m.PeerId,
|
||||
}
|
||||
|
||||
params := mustEnc(constructorParams)
|
||||
|
@ -109,8 +109,8 @@ func (s *FPoStScheduler) checkFaults(ctx context.Context, ssi sectorbuilder.Sort
|
||||
var faultIDs []abi.SectorNumber
|
||||
if len(faults) > 0 {
|
||||
params := &miner.DeclareTemporaryFaultsParams{
|
||||
Duration: 900, // TODO: duration is annoying
|
||||
SectorNumbers:abi.NewBitField(),
|
||||
Duration: 900, // TODO: duration is annoying
|
||||
SectorNumbers: abi.NewBitField(),
|
||||
}
|
||||
|
||||
for _, fault := range faults {
|
||||
@ -192,8 +192,8 @@ func (s *FPoStScheduler) runPost(ctx context.Context, eps abi.ChainEpoch, ts *ty
|
||||
copy(part, sc.PartialTicket[:])
|
||||
candidates[i] = abi.PoStCandidate{
|
||||
RegisteredProof: abi.RegisteredProof_StackedDRG32GiBPoSt, // TODO: build setting
|
||||
PartialTicket: part,
|
||||
SectorID: abi.SectorID{
|
||||
PartialTicket: part,
|
||||
SectorID: abi.SectorID{
|
||||
Miner: abi.ActorID(mid),
|
||||
Number: sc.SectorNum,
|
||||
},
|
||||
@ -202,7 +202,7 @@ func (s *FPoStScheduler) runPost(ctx context.Context, eps abi.ChainEpoch, ts *ty
|
||||
}
|
||||
|
||||
return &abi.OnChainPoStVerifyInfo{
|
||||
ProofType: abi.RegisteredProof_StackedDRG32GiBPoSt, // TODO: build setting
|
||||
ProofType: abi.RegisteredProof_StackedDRG32GiBPoSt, // TODO: build setting
|
||||
Proof: proof,
|
||||
Candidates: candidates,
|
||||
}, nil
|
||||
|
@ -99,13 +99,13 @@ func (m *Sealing) handlePreCommitting(ctx statemachine.Context, sector SectorInf
|
||||
}
|
||||
|
||||
params := &miner.SectorPreCommitInfo{
|
||||
Expiration: 0,
|
||||
SectorNumber: sector.SectorID,
|
||||
Expiration: 0,
|
||||
SectorNumber: sector.SectorID,
|
||||
|
||||
SealedCID: commcid.ReplicaCommitmentV1ToCID(sector.CommR),
|
||||
SealEpoch: sector.Ticket.BlockHeight,
|
||||
DealIDs: nil, // sector.deals(), // TODO: REFACTOR
|
||||
}
|
||||
SealedCID: commcid.ReplicaCommitmentV1ToCID(sector.CommR),
|
||||
SealEpoch: sector.Ticket.BlockHeight,
|
||||
DealIDs: nil, // sector.deals(), // TODO: REFACTOR
|
||||
}
|
||||
enc, aerr := actors.SerializeParams(params)
|
||||
if aerr != nil {
|
||||
return ctx.Send(SectorPreCommitFailed{xerrors.Errorf("could not serialize commit sector parameters: %w", aerr)})
|
||||
|
Loading…
Reference in New Issue
Block a user