@@ -23,13 +23,16 @@ pub const NODE_SIZE: usize = 32;
23
23
/// ref: <https://github.com/filecoin-project/builtin-actors/blob/82d02e58f9ef456aeaf2a6c737562ac97b22b244/runtime/src/runtime/policy.rs#L283>
24
24
pub const MAX_PARTITIONS_PER_DEADLINE : u32 = 3000 ;
25
25
26
+ /// Establishes how many PoRep partitions can we verify in a single extrinsic.
27
+ /// It's determined by the Groth16 timing limitations.
28
+ /// Verification of 10 PoRep partitions (1GiB sector size) takes a whole block.
29
+ pub const MAX_POREP_PROOFS_PER_BLOCK : u32 = 10 ;
30
+
26
31
/// Establishes how many partitions can we verify in a single extrinsic.
27
- /// It's determined by the timing limitations, storage provider have an upper limit of 3000 partitions per deadline.
28
- /// With our current verification solution, it'll take around ~30 extrinsic calls to verify all of them.
29
- /// Verification of a single proof takes around ~100ms, block time is ~6000ms.
30
- /// This means 10 partitions will be verified in a ~1 sec.
31
- // TODO(@th7nder,#659,27/12/2024): possibly speed it up
32
- pub const MAX_PROOFS_PER_BLOCK : u32 = 10 ;
32
+ /// It's determined by the timing limitations, storage provider have an upper limit of 300 partitions per deadline.
33
+ /// With our current verification solution, it'll take around ~300 extrinsic calls to verify all of them.
34
+ /// Verification of a single proof takes around ~2s, takes a whole block.
35
+ pub const MAX_POST_PROOFS_PER_BLOCK : u32 = 1 ;
33
36
34
37
/// Max number of sectors.
35
38
/// <https://github.com/filecoin-project/builtin-actors/blob/17ede2b256bc819dc309edf38e031e246a516486/runtime/src/runtime/policy.rs#L262>
@@ -57,15 +60,15 @@ pub const MAX_DEALS_FOR_ALL_SECTORS: u32 = MAX_SECTORS_PER_CALL * MAX_DEALS_PER_
57
60
pub const MAX_TERMINATIONS_PER_CALL : u32 = 32 ; // TODO(@jmg-duarte,25/07/2024): change for a better value
58
61
59
62
/// The maximum amount of sectors allowed in proofs and replicas.
60
- /// This value is the absolute max, when the sector size is 32 GiB.
63
+ /// This value is the absolute max, when the sector size is 1 GiB.
61
64
/// Proofs and replicas are still dynamically checked for their size depending on the sector size.
62
65
///
63
66
/// References:
64
67
/// * Filecoin docs about PoSt: <https://spec.filecoin.io/algorithms/pos/post/#section-algorithms.pos.post.windowpost>
65
- pub const MAX_SECTORS_PER_PROOF : u32 = 2349 ;
68
+ pub const MAX_SECTORS_PER_PROOF : u32 = 25 ;
66
69
67
70
/// The maximum amount of replicas that can be processed in a single block.
68
- pub const MAX_REPLICAS_PER_BLOCK : u32 = MAX_SECTORS_PER_PROOF * MAX_PROOFS_PER_BLOCK ;
71
+ pub const MAX_REPLICAS_PER_BLOCK : u32 = MAX_SECTORS_PER_PROOF * MAX_POST_PROOFS_PER_BLOCK ;
69
72
70
73
/// The absolute maximum length, in bytes, a seal proof should be for the largest sector size.
71
74
/// NOTE: Taken the value from `StackedDRG32GiBV1`,
0 commit comments