File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
#include < util/check.h>
10
10
#include < util/vector.h>
11
11
12
- // The two constants below are computed using the simulation script on
13
- // https://gist.github.com/sipa/016ae445c132cdf65a2791534dfb7ae1
12
+ // The two constants below are computed using the simulation script in
13
+ // contrib/devtools/headerssync-params.py.
14
14
15
- // ! Store a commitment to a header every HEADER_COMMITMENT_PERIOD blocks.
16
- constexpr size_t HEADER_COMMITMENT_PERIOD{584 };
15
+ // ! Store one header commitment per HEADER_COMMITMENT_PERIOD blocks.
16
+ constexpr size_t HEADER_COMMITMENT_PERIOD{600 };
17
17
18
18
// ! Only feed headers to validation once this many headers on top have been
19
19
// ! received and validated against commitments.
20
- constexpr size_t REDOWNLOAD_BUFFER_SIZE{13959 }; // 13959/584 = ~23.9 commitments
20
+ constexpr size_t REDOWNLOAD_BUFFER_SIZE{14308 }; // 14308/600 = ~23.8 commitments
21
21
22
22
// Our memory analysis assumes 48 bytes for a CompressedHeader (so we should
23
23
// re-calculate parameters if we compress further)
You can’t perform that action at this time.
0 commit comments