From bf36ca93bb1dcfc250fae3ae1abf2dc9f11ca0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 31 Jul 2023 12:43:47 +0200 Subject: [PATCH 1/2] legacy syscalls: Cleanup ComputeUnsealedSectorCID --- chain/vm/syscalls.go | 5 ----- 1 file changed, 5 deletions(-) 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) From 6636da1299186be9cf677f78a22efdd37bac0414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 1 Aug 2023 16:34:21 +0200 Subject: [PATCH 2/2] itests: Use Must-Post mining in TestDealsWithSealingAndRPC --- itests/deals_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {