Devnet 9
This commit is contained in:
parent
4500a36ec6
commit
5ba4dfdf14
Binary file not shown.
@ -3,19 +3,19 @@
|
|||||||
package build
|
package build
|
||||||
|
|
||||||
// Seconds
|
// Seconds
|
||||||
const BlockDelay = 12
|
const BlockDelay = 30
|
||||||
|
|
||||||
// FallbackPoStDelay is the number of epochs the miner needs to wait after
|
// FallbackPoStDelay is the number of epochs the miner needs to wait after
|
||||||
// ElectionPeriodStart before starting fallback post computation
|
// ElectionPeriodStart before starting fallback post computation
|
||||||
//
|
//
|
||||||
// Epochs
|
// Epochs
|
||||||
const FallbackPoStDelay = 1000
|
const FallbackPoStDelay = 30
|
||||||
|
|
||||||
// SlashablePowerDelay is the number of epochs after ElectionPeriodStart, after
|
// SlashablePowerDelay is the number of epochs after ElectionPeriodStart, after
|
||||||
// which the miner is slashed
|
// which the miner is slashed
|
||||||
//
|
//
|
||||||
// Epochs
|
// Epochs
|
||||||
const SlashablePowerDelay = 2000
|
const SlashablePowerDelay = 200
|
||||||
|
|
||||||
// Epochs
|
// Epochs
|
||||||
const InteractivePoRepDelay = 10
|
const InteractivePoRepDelay = 8
|
||||||
|
@ -13,7 +13,6 @@ const UnixfsChunkSize uint64 = 1 << 20
|
|||||||
const UnixfsLinksPerLevel = 1024
|
const UnixfsLinksPerLevel = 1024
|
||||||
|
|
||||||
var SectorSizes = []uint64{
|
var SectorSizes = []uint64{
|
||||||
1 << 10,
|
|
||||||
16 << 20,
|
16 << 20,
|
||||||
256 << 20,
|
256 << 20,
|
||||||
1 << 30,
|
1 << 30,
|
||||||
|
@ -367,9 +367,14 @@ func storageMinerInit(ctx context.Context, cctx *cli.Context, api lapi.FullNode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if pssb := cctx.String("pre-sealed-sectors"); pssb != "" {
|
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)
|
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)
|
return xerrors.Errorf("migrating presealed sector metadata: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user