Make size limit of orphan witnesses configurable #10650
Labels
A-stateless-validation
Area: stateless validation
C-good-first-issue
Category: issues that are self-contained and easy for newcomers to work on.
The size of orphaned chunk state witnesses admitted to the
OrphanStateWitnessPool
is limited by the constantMAX_ORPHAN_WITNESS_SIZE
. Value ofMAX_ORPHAN_WITNESS_SIZE
was chosen based on the observed values, but this estimation might not be perfect. If the limit turns out to be too small, it could lead to discarding valid orphaned witnesses. This isn't a big problem, but it could increase the number of missing chunks.It would be nice to allow node operators to control this limit from
config.json
, just like it's possible to control the pool size by using theorphan_state_witness_pool_size
config parameter.Refs: #10613 (comment)
The text was updated successfully, but these errors were encountered: