Robust script for estimating the max segment and the tranche counts #872
Labels
effort: high
Large or difficult task.
priority: 1
This is important. It should be dealt with shortly.
type: feature
New feature or request.
work: complicated
Sense-analyze-respond. The relationship between cause and effect requires analysis or expertise.
Context
While reviewing Shub's gas estimation script here, it dawned on me that we have been too lax about the values of
MAX_SEGMENT_COUNT
andMAX_TRANCHE_COUNT
.Basically, we have relied on heuristics and quick-and-dirty scripts to obtain them.
It's about time to develop a robust shell script for estimating the max segment and the tranche counts. My rationale is thus:
Mechanism of Action
The script would work something like this:
createWithDurations
(which is always more expensive thancreateWithTimestamps
) until the consumed gas is right below the block gas limit per chainLockupDynamic
andLockupTranched
(separately)A related suggestion is that we may want to turn the
maxCount
variable into a mapping inBaseScript
.The text was updated successfully, but these errors were encountered: