Skip to content

Commit

Permalink
remove unnecessary wrapper store in tests
Browse files Browse the repository at this point in the history
This was causing a lot of warnings about not implementing View.
  • Loading branch information
Stebalien committed Jan 27, 2021
1 parent 5e35258 commit 073a158
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions chain/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/crypto"
"github.com/google/uuid"
block "github.com/ipfs/go-block-format"
"github.com/ipfs/go-blockservice"
"github.com/ipfs/go-cid"
offline "github.com/ipfs/go-ipfs-exchange-offline"
Expand Down Expand Up @@ -85,19 +84,6 @@ type ChainGen struct {
lr repo.LockedRepo
}

type mybs struct {
blockstore.Blockstore
}

func (m mybs) Get(c cid.Cid) (block.Block, error) {
b, err := m.Blockstore.Get(c)
if err != nil {
return nil, err
}

return b, nil
}

var rootkeyMultisig = genesis.MultisigMeta{
Signers: []address.Address{remAccTestKey},
Threshold: 1,
Expand Down Expand Up @@ -152,8 +138,6 @@ func NewGeneratorWithSectors(numSectors int) (*ChainGen, error) {
}
}()

bs = mybs{bs}

ks, err := lr.KeyStore()
if err != nil {
return nil, xerrors.Errorf("getting repo keystore failed: %w", err)
Expand Down

0 comments on commit 073a158

Please sign in to comment.