@@ -71,15 +71,15 @@ func OCR3_1Limits(cfg ocr3_1config.PublicConfig, pluginLimits ocr3_1types.Report
7171 const sigOverhead = 10
7272 const overhead = 256
7373
74- maxLenStateTransitionOutputs := add (
74+ maxLenStateWriteSet := add (
7575 pluginLimits .MaxKeyValueModifiedKeysPlusValuesBytes ,
7676 mul (
7777 pluginLimits .MaxKeyValueModifiedKeys ,
7878 repeatedOverhead ,
7979 ),
8080 )
8181 maxLenCertifiedPrepareOrCommit := add (mul (ed25519 .SignatureSize + sigOverhead , cfg .ByzQuorumSize ()),
82- sha256 .Size * 3 ,
82+ sha256 .Size * 5 ,
8383 overhead )
8484 maxLenMsgNewEpoch := overhead
8585 maxLenMsgEpochStartRequest := add (maxLenCertifiedPrepareOrCommit , overhead )
@@ -132,7 +132,7 @@ func OCR3_1Limits(cfg ocr3_1config.PublicConfig, pluginLimits ocr3_1types.Report
132132
133133 // block sync messages
134134 maxLenMsgBlockSyncRequest := overhead
135- maxLenAttestedStateTransitionBlock := add (maxLenCertifiedPrepareOrCommit , maxLenStateTransitionOutputs )
135+ maxLenAttestedStateTransitionBlock := add (maxLenCertifiedPrepareOrCommit , maxLenStateWriteSet )
136136 maxLenMsgBlockSyncResponse := add (mul (cfg .GetMaxBlocksPerBlockSyncResponse (), maxLenAttestedStateTransitionBlock ), overhead )
137137
138138 // blob exchange messages
@@ -151,13 +151,11 @@ func OCR3_1Limits(cfg ocr3_1config.PublicConfig, pluginLimits ocr3_1types.Report
151151 maxLenMsgEpochStartRequest ,
152152 maxLenMsgEpochStart ,
153153 maxLenMsgRoundStart ,
154- maxLenMsgObservation ,
155154 maxLenMsgProposal ,
156155 maxLenMsgPrepare ,
157156 maxLenMsgCommit ,
158157 maxLenMsgReportSignatures ,
159158 maxLenMsgReportsPlusPrecursorRequest ,
160- maxLenMsgReportsPlusPrecursor ,
161159 maxLenMsgBlobOffer ,
162160 maxLenMsgBlobChunkRequest ,
163161 )
@@ -174,15 +172,15 @@ func OCR3_1Limits(cfg ocr3_1config.PublicConfig, pluginLimits ocr3_1types.Report
174172
175173 defaultPriorityMessagesRate := (1.0 * float64 (time .Second )/ float64 (cfg .GetDeltaResend ()) +
176174 3.0 * float64 (time .Second )/ minEpochInterval +
177- 8 .0* float64 (time .Second )/ float64 (minRoundInterval ) +
175+ 6 .0* float64 (time .Second )/ float64 (minRoundInterval ) +
178176 2.0 * float64 (time .Second )/ float64 (cfg .GetDeltaBlobOfferMinRequestToSameOracleInterval ()) +
179177 1.0 * float64 (time .Second )/ float64 (cfg .GetDeltaBlobChunkMinRequestToSameOracleInterval ())) * 1.2
180178
181179 lowPriorityMessagesRate := (1.0 * float64 (time .Second )/ float64 (cfg .GetDeltaBlockSyncMinRequestToSameOracleInterval ()) +
182180 1.0 * float64 (time .Second )/ float64 (cfg .GetDeltaTreeSyncMinRequestToSameOracleInterval ()) +
183181 1.0 * float64 (time .Second )/ float64 (cfg .GetDeltaStateSyncSummaryInterval ())) * 1.2
184182
185- defaultPriorityMessagesCapacity := mul (15 , 3 )
183+ defaultPriorityMessagesCapacity := mul (13 , 3 )
186184 lowPriorityMessagesCapacity := mul (3 , 3 )
187185
188186 // we don't multiply bytesRate by a safetyMargin since we already have a generous overhead on each message
@@ -196,9 +194,7 @@ func OCR3_1Limits(cfg ocr3_1config.PublicConfig, pluginLimits ocr3_1types.Report
196194 float64 (time .Second )/ float64 (minRoundInterval )* float64 (maxLenMsgRoundStart ) +
197195 float64 (time .Second )/ float64 (minRoundInterval )* float64 (maxLenMsgProposal ) +
198196 float64 (time .Second )/ float64 (minEpochInterval )* float64 (maxLenMsgEpochStartRequest ) +
199- float64 (time .Second )/ float64 (minRoundInterval )* float64 (maxLenMsgObservation ) +
200197 float64 (time .Second )/ float64 (minRoundInterval )* float64 (maxLenMsgReportsPlusPrecursorRequest ) +
201- float64 (time .Second )/ float64 (minRoundInterval )* float64 (maxLenMsgReportsPlusPrecursor ) +
202198 float64 (time .Second )/ float64 (cfg .GetDeltaBlobOfferMinRequestToSameOracleInterval ())* float64 (maxLenMsgBlobOffer ) + // blob-related messages
203199 float64 (time .Second )/ float64 (cfg .GetDeltaBlobChunkMinRequestToSameOracleInterval ())* float64 (maxLenMsgBlobChunkRequest )
204200
@@ -212,16 +208,13 @@ func OCR3_1Limits(cfg ocr3_1config.PublicConfig, pluginLimits ocr3_1types.Report
212208 maxLenMsgEpochStartRequest ,
213209 maxLenMsgEpochStart ,
214210 maxLenMsgRoundStart ,
215- maxLenMsgObservation ,
216211 maxLenMsgProposal ,
217212 maxLenMsgPrepare ,
218213 maxLenMsgCommit ,
219214 maxLenMsgReportSignatures ,
220215 maxLenMsgReportsPlusPrecursorRequest ,
221- maxLenMsgReportsPlusPrecursor ,
222216 maxLenMsgBlobOffer ,
223217 maxLenMsgBlobChunkRequest ,
224- maxLenMsgBlobOfferResponse ,
225218 ), 3 )
226219
227220 lowPriorityBytesCapacity := mul (add (
0 commit comments