From 466966c72d432499a48cc8d7138e39ab98968222 Mon Sep 17 00:00:00 2001 From: LexLuthr Date: Wed, 3 Apr 2024 23:04:08 +0400 Subject: [PATCH] enable 8MiB sectors on Curio --- curiosrc/ffi/sdr_funcs.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/curiosrc/ffi/sdr_funcs.go b/curiosrc/ffi/sdr_funcs.go index 74a3270cf..0f78ca6cd 100644 --- a/curiosrc/ffi/sdr_funcs.go +++ b/curiosrc/ffi/sdr_funcs.go @@ -318,6 +318,22 @@ func (sb *SealCalls) makePhase1Out(unsCid cid.Cid, spt abi.RegisteredSealProof) Size: 64, }) } + + case abi.RegisteredSealProof_StackedDrg8MiBV1_1, abi.RegisteredSealProof_StackedDrg8MiBV1_1_Feat_SyntheticPoRep: + phase1Output.Config.RowsToDiscard = 0 + phase1Output.Config.Size = 524287 + phase1Output.Labels["StackedDrg8MiBV1"] = &Labels{} + phase1Output.RegisteredProof = "StackedDrg8MiBV1_1" + + for i := 0; i < 2; i++ { + phase1Output.Labels["StackedDrg8MiBV1"].Labels = append(phase1Output.Labels["StackedDrg8MiBV1"].Labels, Config{ + ID: fmt.Sprintf("layer-%d", i+1), + Path: "/placeholder", + RowsToDiscard: 0, + Size: 262144, + }) + } + case abi.RegisteredSealProof_StackedDrg512MiBV1_1: phase1Output.Config.RowsToDiscard = 0 phase1Output.Config.Size = 33554431