improve some seal duration things
This commit is contained in:
parent
c3ff29cd7f
commit
dd8c88b418
@ -154,6 +154,13 @@ var infoCmd = &cli.Command{
|
|||||||
|
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
|
|
||||||
|
sealdur, err := nodeApi.SectorGetExpectedSealDuration(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Printf("Expected Seal Duration: %s\n\n", sealdur)
|
||||||
|
|
||||||
fmt.Println("Sectors:")
|
fmt.Println("Sectors:")
|
||||||
err = sectorsInfo(ctx, nodeApi)
|
err = sectorsInfo(ctx, nodeApi)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -420,7 +420,7 @@ func StorageProvider(minerAddress dtypes.MinerAddress,
|
|||||||
}
|
}
|
||||||
earliest := abi.ChainEpoch(sealEpochs) + ht
|
earliest := abi.ChainEpoch(sealEpochs) + ht
|
||||||
if deal.Proposal.StartEpoch < earliest {
|
if deal.Proposal.StartEpoch < earliest {
|
||||||
log.Warnf("proposed deal would start before sealing can be completed; rejecting storage deal proposal from client: %s", deal.Proposal.PieceCID, deal.Client.String())
|
log.Warnw("proposed deal would start before sealing can be completed; rejecting storage deal proposal from client", "piece_cid", deal.Proposal.PieceCID, "client", deal.Client.String(), "seal_duration", sealDuration, "earliest", earliest, "curepoch", ht)
|
||||||
return false, fmt.Sprintf("cannot seal a sector before %s", deal.Proposal.StartEpoch), nil
|
return false, fmt.Sprintf("cannot seal a sector before %s", deal.Proposal.StartEpoch), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user