Skip to content

Commit c011c7f

Browse files
committedMar 13, 2025·
updated certificate size to 7kB, as appropriate for realistic stakes
1 parent b5688b2 commit c011c7f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎data/simulation/config.default.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ vote-diffusion-max-window-size: 100
180180
# Certificate Configuration
181181
################################################################################
182182

183-
# vote-spec#"certificate bytes"
184-
cert-size-bytes-constant: 136
185-
# vote-spec#"certificate bytes" ((80/8) + 76 * (100 - 80))/100
186-
cert-size-bytes-per-node: 15
183+
# vote-spec - certificate size plot.
184+
# Realistic stake distributions need about 7 kilobytes for the certificate.
185+
cert-size-bytes-constant: 7168
186+
cert-size-bytes-per-node: 0
187187

188188
# For certificate timings we have bulk figures for realistic scenarios,
189189
# so we do not attempt to give -per-node (i.e. per-voter) timings.

‎simulation/src/LeiosProtocol/Config.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ instance Default Config where
209209
, certGenerationCpuTimeMsPerNode = 0.0
210210
, certValidationCpuTimeMsConstant = 130.0
211211
, certValidationCpuTimeMsPerNode = 0.0
212-
, certSizeBytesConstant = 136
213-
, certSizeBytesPerNode = 15
212+
, certSizeBytesConstant = 7168
213+
, certSizeBytesPerNode = 0
214214
}
215215

216216
configToJSONWith :: Getter Config -> Config -> Value

0 commit comments

Comments
 (0)
Please sign in to comment.