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 99#include < util/check.h>
1010#include < util/vector.h>
1111
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.
1414
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 };
1717
1818// ! Only feed headers to validation once this many headers on top have been
1919// ! 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
2121
2222// Our memory analysis assumes 48 bytes for a CompressedHeader (so we should
2323// re-calculate parameters if we compress further)
You can’t perform that action at this time.
0 commit comments