Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the BOLD Challenge Cache #2459

Merged
merged 12 commits into from
Jul 16, 2024
13 changes: 0 additions & 13 deletions staker/challenge-cache/cache.go
Original file line number Diff line number Diff line change
@@ -22,19 +22,6 @@ Example uses:
hashes.bin
subchallenge-level-1-big-step-100/
hashes.bin
wavm-module-root-0xcd/
message-num-53-rollup-block-hash-0x11.../
hashes.bin
subchallenge-level-1-big-step-100/
hashes.bin
message-num-69-rollup-block-hash-0x11.../
hashes.bin
subchallenge-level-1-big-step-100/
hashes.bin
message-num-70-rollup-block-hash-0x11.../
hashes.bin
subchallenge-level-1-big-step-100/
hashes.bin

We namespace top-level block challenges by wavm module root. Then, we can retrieve
the hashes for any data within a challenge or associated subchallenge based on the hierarchy above.