From d53e43c24d3f4157014edfaf4f2f4ff5ee6e469a Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 6 Dec 2019 19:47:55 +0100 Subject: [PATCH] Fix test, improve log License: MIT Signed-off-by: Jakub Sztandera --- cmd/lotus-seed/seed/seed.go | 2 +- node/node_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-seed/seed/seed.go b/cmd/lotus-seed/seed/seed.go index 6ba4581e5..99559a290 100644 --- a/cmd/lotus-seed/seed/seed.go +++ b/cmd/lotus-seed/seed/seed.go @@ -78,7 +78,7 @@ func PreSeal(maddr address.Address, ssize uint64, offset uint64, sectors int, sb TicketBytes: trand, } - fmt.Println("Piece info: ", pi) + fmt.Printf("sector-id: %d, piece info: %v", sid, pi) pco, err := sb.SealPreCommit(sid, ticket, []sectorbuilder.PublicPieceInfo{pi}) if err != nil { diff --git a/node/node_test.go b/node/node_test.go index 2e64c1fbc..629f7b659 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -4,12 +4,13 @@ import ( "bytes" "context" "crypto/rand" - "github.com/filecoin-project/lotus/build" "io/ioutil" "net/http/httptest" "path/filepath" "testing" + "github.com/filecoin-project/lotus/build" + "github.com/libp2p/go-libp2p-core/crypto" "github.com/ipfs/go-datastore" @@ -162,7 +163,7 @@ func builder(t *testing.T, nFull int, storage []int) ([]test.TestNode, []test.Te if err != nil { t.Fatal(err) } - genm, err := seed.PreSeal(maddr, 1024, 1, tdir, []byte("make genesis mem random")) + genm, err := seed.PreSeal(maddr, 1024, 1, 0, tdir, []byte("make genesis mem random")) if err != nil { t.Fatal(err) }