This commit is contained in:
Łukasz Magiera 2019-12-03 01:44:52 +01:00
parent 4500a36ec6
commit 5ba4dfdf14
4 changed files with 10 additions and 6 deletions

Binary file not shown.

View File

@ -3,19 +3,19 @@
package build
// Seconds
const BlockDelay = 12
const BlockDelay = 30
// FallbackPoStDelay is the number of epochs the miner needs to wait after
// ElectionPeriodStart before starting fallback post computation
//
// Epochs
const FallbackPoStDelay = 1000
const FallbackPoStDelay = 30
// SlashablePowerDelay is the number of epochs after ElectionPeriodStart, after
// which the miner is slashed
//
// Epochs
const SlashablePowerDelay = 2000
const SlashablePowerDelay = 200
// Epochs
const InteractivePoRepDelay = 10
const InteractivePoRepDelay = 8

View File

@ -13,7 +13,6 @@ const UnixfsChunkSize uint64 = 1 << 20
const UnixfsLinksPerLevel = 1024
var SectorSizes = []uint64{
1 << 10,
16 << 20,
256 << 20,
1 << 30,

View File

@ -367,9 +367,14 @@ func storageMinerInit(ctx context.Context, cctx *cli.Context, api lapi.FullNode,
}
if pssb := cctx.String("pre-sealed-sectors"); pssb != "" {
pssb, err := homedir.Expand(pssb)
if err != nil {
return err
}
log.Infof("Importing pre-sealed sector metadata for %s", a)
if err := migratePreSealMeta(ctx, api, cctx.String("pre-sealed-sectors"), a, mds); err != nil {
if err := migratePreSealMeta(ctx, api, pssb, a, mds); err != nil {
return xerrors.Errorf("migrating presealed sector metadata: %w", err)
}
}