Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 authored and vyzo committed Apr 14, 2022
1 parent 7163fe6 commit 60d0957
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions chain/stmgr/forks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestForkHeightTriggers(t *testing.T) {
Network: network.Version1,
Height: testForkHeight,
Migration: func(ctx context.Context, sm *StateManager, cache MigrationCache, cb ExecMonitor,
mf cid.Cid, root cid.Cid, height abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) {
root cid.Cid, _ cid.Cid, height abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) {
cst := ipldcbor.NewCborStore(sm.ChainStore().StateBlockstore())

st, err := sm.StateTree(root)
Expand Down Expand Up @@ -276,7 +276,7 @@ func testForkRefuseCall(t *testing.T, nullsBefore, nullsAfter int) {
Expensive: true,
Height: testForkHeight,
Migration: func(ctx context.Context, sm *StateManager, cache MigrationCache, cb ExecMonitor,
mf cid.Cid, root cid.Cid, height abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) {
root cid.Cid, _ cid.Cid, height abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) {
migrationCount++
return root, nil
}}}, cg.BeaconSchedule())
Expand Down Expand Up @@ -412,7 +412,7 @@ func TestForkPreMigration(t *testing.T) {
Network: network.Version1,
Height: testForkHeight,
Migration: func(ctx context.Context, sm *StateManager, cache MigrationCache, cb ExecMonitor,
mf cid.Cid, root cid.Cid, height abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) {
root cid.Cid, _ cid.Cid, height abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) {

// Make sure the test that should be canceled, is canceled.
select {
Expand Down
5 changes: 2 additions & 3 deletions extern/storage-sealing/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"bytes"
"testing"

market7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/market"

"github.com/ipfs/go-cid"

"gotest.tools/assert"
Expand All @@ -14,6 +12,7 @@ import (
"github.com/filecoin-project/go-state-types/abi"
api "github.com/filecoin-project/lotus/api"
tutils "github.com/filecoin-project/specs-actors/v2/support/testing"
market8 "github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
)

func TestSectorInfoSerialization(t *testing.T) {
Expand All @@ -30,7 +29,7 @@ func TestSectorInfoSerialization(t *testing.T) {
StartEpoch: 0,
EndEpoch: 100,
},
DealProposal: &market7.DealProposal{
DealProposal: &market8.DealProposal{
PieceCID: dummyCid,
PieceSize: 5,
Client: tutils.NewActorAddr(t, "client"),
Expand Down
2 changes: 1 addition & 1 deletion markets/dagstore/wrapper_migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/filecoin-project/lotus/node/config"

"github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
"github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
)

func TestShardRegistration(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions markets/storageadapter/ondealsectorcommitted_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

market7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
market8 "github.com/filecoin-project/specs-actors/v8/actors/builtin/market"

sealing "github.com/filecoin-project/lotus/extern/storage-sealing"

Expand All @@ -33,7 +33,7 @@ import (
)

func TestOnDealSectorPreCommitted(t *testing.T) {
label, err := market7.NewDealLabelFromString("success")
label, err := market8.NewLabelFromString("success")
require.NoError(t, err)

provider := address.TestAddress
Expand Down Expand Up @@ -257,7 +257,7 @@ func TestOnDealSectorPreCommitted(t *testing.T) {
}

func TestOnDealSectorCommitted(t *testing.T) {
label, err := market7.NewDealLabelFromString("success")
label, err := market8.NewLabelFromString("success")
require.NoError(t, err)

provider := address.TestAddress
Expand Down
6 changes: 3 additions & 3 deletions storage/mockstorage/preseal.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/lotus/extern/sector-storage/mock"
market7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
market8 "github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
"golang.org/x/xerrors"

"github.com/filecoin-project/lotus/chain/types"
Expand Down Expand Up @@ -39,7 +39,7 @@ func PreSeal(spt abi.RegisteredSealProof, maddr address.Address, sectors int) (*
}

for i := range genm.Sectors {
label, err := market7.NewDealLabelFromString(fmt.Sprintf("%d", i))
label, err := market8.NewLabelFromString(fmt.Sprintf("%d", i))
if err != nil {
return nil, nil, xerrors.Errorf("failed to create label: %w", err)
}
Expand All @@ -52,7 +52,7 @@ func PreSeal(spt abi.RegisteredSealProof, maddr address.Address, sectors int) (*
r := mock.CommDR(d)
preseal.CommR, _ = commcid.ReplicaCommitmentV1ToCID(r[:])
preseal.SectorID = abi.SectorNumber(i + 1)
preseal.Deal = market7.DealProposal{
preseal.Deal = market8.DealProposal{
PieceCID: preseal.CommD,
PieceSize: abi.PaddedPieceSize(ssize),
Client: k.Address,
Expand Down

0 comments on commit 60d0957

Please sign in to comment.