diff --git a/chain/vm/syscalls.go b/chain/vm/syscalls.go index 68dbbb2df..83a07ca2d 100644 --- a/chain/vm/syscalls.go +++ b/chain/vm/syscalls.go @@ -70,11 +70,6 @@ type syscallShim struct { } func (ss *syscallShim) ComputeUnsealedSectorCID(st abi.RegisteredSealProof, pieces []abi.PieceInfo) (cid.Cid, error) { - var sum abi.PaddedPieceSize - for _, p := range pieces { - sum += p.Size - } - commd, err := ffiwrapper.GenerateUnsealedCID(st, pieces) if err != nil { log.Errorf("generate data commitment failed: %s", err) diff --git a/itests/deals_test.go b/itests/deals_test.go index e8296ea87..a6953d07e 100644 --- a/itests/deals_test.go +++ b/itests/deals_test.go @@ -22,7 +22,7 @@ func TestDealsWithSealingAndRPC(t *testing.T) { kit.QuietMiningLogs() client, miner, ens := kit.EnsembleMinimal(t, kit.ThroughRPC(), kit.WithAllSubsystems()) // no mock proofs. - ens.InterconnectAll().BeginMining(250 * time.Millisecond) + ens.InterconnectAll().BeginMiningMustPost(250 * time.Millisecond) dh := kit.NewDealHarness(t, client, miner, miner) t.Run("stdretrieval", func(t *testing.T) {