From cfc3ac795d89453703338aefb8176412c4c9488f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 1 Aug 2019 16:26:12 +0200 Subject: [PATCH] Fix tests --- node/modules/testing/genesis.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/node/modules/testing/genesis.go b/node/modules/testing/genesis.go index 48ab1f9d6..64a7db71c 100644 --- a/node/modules/testing/genesis.go +++ b/node/modules/testing/genesis.go @@ -8,7 +8,6 @@ import ( "github.com/ipfs/go-blockservice" "github.com/ipfs/go-car" "github.com/ipfs/go-cid" - blockstore "github.com/ipfs/go-ipfs-blockstore" offline "github.com/ipfs/go-ipfs-exchange-offline" logging "github.com/ipfs/go-log" "github.com/ipfs/go-merkledag" @@ -23,8 +22,8 @@ import ( var glog = logging.Logger("genesis") -func MakeGenesisMem(out io.Writer) func(bs blockstore.Blockstore, w *wallet.Wallet) modules.Genesis { - return func(bs blockstore.Blockstore, w *wallet.Wallet) modules.Genesis { +func MakeGenesisMem(out io.Writer) func(bs dtypes.ChainBlockstore, w *wallet.Wallet) modules.Genesis { + return func(bs dtypes.ChainBlockstore, w *wallet.Wallet) modules.Genesis { return func() (*types.BlockHeader, error) { glog.Warn("Generating new random genesis block, note that this SHOULD NOT happen unless you are setting up new network") // TODO: make an address allocation