Skip to content

Conversation

@coderofstuff
Copy link
Collaborator

@coderofstuff coderofstuff commented Jan 3, 2026

Make a single outer pass to fill the level relations store. When a potentially deep enough root (both in discrete count and blue depth) is found, use it as a root and fill the GD store.

This process will minimize the number of retries per level.

This solves the issue where producing the proof for higher levels can go upwards of 100 tries. With this change, only exactly one iteration is needed.

@coderofstuff coderofstuff force-pushed the minimize-proof-reiteration branch from 7b53396 to 306cef1 Compare January 6, 2026 04:05
@coderofstuff coderofstuff changed the title Minimize the number of iterations to produce proof Calculate proof context efficiently Jan 12, 2026
Do this by ensuring that the level_block_at_depth is indeed
of sufficient depth (via discrete block counts)
Make a single outer pass to fill the level relations store. When a
potentially deep enough root (both in discrete count and blue depth) is
found, use it as a root and fill the GD store.

This process will minimize the number of retries per level.
@coderofstuff coderofstuff force-pushed the minimize-proof-reiteration branch from 521789e to a0135af Compare January 12, 2026 05:00
@michaelsutton michaelsutton force-pushed the minimize-proof-reiteration branch from b93589f to ffaee97 Compare January 13, 2026 21:42
michaelsutton
michaelsutton previously approved these changes Jan 13, 2026
Copy link
Collaborator Author

@coderofstuff coderofstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the latest changes. LGTM

@michaelsutton michaelsutton merged commit 72cd721 into kaspanet:master Jan 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants