Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Oct 20, 2022
1 parent dc8206e commit 7609655
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 37 deletions.
2 changes: 1 addition & 1 deletion chain/consensus/filcns/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func DefaultUpgradeSchedule() stmgr.UpgradeSchedule {
PreMigration: PreUpgradeActorsV9,
StartWithin: 240,
DontStartWithin: 60,
StopWithin: 5,
StopWithin: 20,
}, {
PreMigration: PreUpgradeActorsV9,
StartWithin: 15,
Expand Down
34 changes: 0 additions & 34 deletions cmd/lotus-shed/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,28 +91,6 @@ var diffMinerStates = &cli.Command{
return err
}

//minerCode, err := cid.Decode("bafk2bzacedxmikgiz7du7e36vzsbmmhhozdtsucjkdo4uzkhj7nacajm33rx4")
//if err != nil {
// return err
//}
//
//minerStIntA, err := miner.Load(actorStore, &types.Actor{Head: stCidA, Code: minerCode})
//if err != nil {
// return err
//}
//
//minerStIntB, err := miner.Load(actorStore, &types.Actor{Head: stCidB, Code: minerCode})
//if err != nil {
// return err
//}
//
//dlDiff, err := miner.DiffDeadlines(minerStIntA, minerStIntB)
//if err != nil {
// return err
//}
//
//fmt.Println(dlDiff)

fmt.Println(minerStA.Deadlines)
fmt.Println(minerStB.Deadlines)

Expand Down Expand Up @@ -167,18 +145,6 @@ var diffMinerStates = &cli.Command{
fmt.Println(i, "isn't found in infoB!!")
}

if infoA.SimpleQAPower != infoB.SimpleQAPower {
fmt.Println("gfreak1")
}

if infoA.SectorKeyCID != infoB.SectorKeyCID {
fmt.Println("gfreak2")
}

if infoA.SealedCID != infoB.SealedCID {
fmt.Println("gfreak3")
}

if !infoA.DealWeight.Equals(infoB.DealWeight) {
fmt.Println("Deal Weights differ! ", infoA.DealWeight, infoB.DealWeight)
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-shed/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ var migrationsCmd = &cli.Command{
fmt.Println("completed round actual (without cache), took ", uncachedMigrationTime)

if cctx.Bool("check-invariants") {
err = checkStateInvariants(ctx, blk.ParentStateRoot, newCid1, bs, blk.Height-1)
err = checkMigrationInvariants(ctx, blk.ParentStateRoot, newCid1, bs, blk.Height-1)
if err != nil {
return err
}
Expand All @@ -186,7 +186,7 @@ var migrationsCmd = &cli.Command{
},
}

func checkStateInvariants(ctx context.Context, v8StateRoot cid.Cid, v9StateRoot cid.Cid, bs blockstore.Blockstore, epoch abi.ChainEpoch) error {
func checkMigrationInvariants(ctx context.Context, v8StateRoot cid.Cid, v9StateRoot cid.Cid, bs blockstore.Blockstore, epoch abi.ChainEpoch) error {
actorStore := store.ActorStore(ctx, bs)
startTime := time.Now()

Expand Down

0 comments on commit 7609655

Please sign in to comment.