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