diff --git a/chain/gen/gen_test.go b/chain/gen/gen_test.go index b4b5b5908..a8cc53805 100644 --- a/chain/gen/gen_test.go +++ b/chain/gen/gen_test.go @@ -27,7 +27,7 @@ func testGeneration(t testing.TB, n int, msgs int) { for i := 0; i < n; i++ { mts, err := g.NextTipSet() if err != nil { - t.Fatalf("error at H:%d, %s", i, err) + t.Fatalf("error at H:%d, %+v", i, err) } _ = mts } diff --git a/chain/vm/vm.go b/chain/vm/vm.go index 85c90f3dd..549fcf8da 100644 --- a/chain/vm/vm.go +++ b/chain/vm/vm.go @@ -7,6 +7,7 @@ import ( "math/big" "reflect" + commcid "github.com/filecoin-project/go-fil-commcid" "github.com/filecoin-project/specs-actors/actors/abi" "github.com/filecoin-project/specs-actors/actors/builtin/account" "github.com/filecoin-project/specs-actors/actors/crypto" @@ -17,6 +18,7 @@ import ( blockstore "github.com/ipfs/go-ipfs-blockstore" cbor "github.com/ipfs/go-ipld-cbor" logging "github.com/ipfs/go-log/v2" + mh "github.com/multiformats/go-multihash" cbg "github.com/whyrusleeping/cbor-gen" "go.opencensus.io/trace" "golang.org/x/xerrors" @@ -640,7 +642,7 @@ func copyRec(from, to blockstore.Blockstore, root cid.Cid, cp func(block.Block) } for _, link := range links { - if link.Prefix().MhType == 0 { + if link.Prefix().MhType == mh.IDENTITY || link.Prefix().MhType == uint64(commcid.FC_SEALED_V1) { continue }