Skip to content

Add invalidation pointer to blocks - #112

Merged
mafintosh merged 2 commits into
mainfrom
invalidation
Oct 21, 2026
Merged

mafintosh merged 2 commits into
mainfrom
invalidation

Conversation

@mafintosh

Copy link
Copy Markdown
Contributor

Block-1 gains an optional invalidation uint. Every decode path returns it (0 for block-0 and bee1 compat blocks), and the writer carries the last loaded value forward into new blocks.

The core context tracks the pointer it loaded its table with and reloads the table when a block carries a newer one, in addition to the existing reload when a referenced core is missing.

Block-1 gains an optional invalidation uint. Every decode path returns it
(0 for block-0 and bee1 compat blocks), and the writer carries the last
loaded value forward into new blocks.

The core context tracks the pointer it loaded its table with and reloads
the table when a block carries a newer one, in addition to the existing
reload when a referenced core is missing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mafintosh
mafintosh requested a review from a team October 21, 2026 14:20
Ports the two context APIs from #105 so the invalidation check in
getBlock resolves the owning context synchronously.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mafintosh
mafintosh merged commit d68d76b into main Oct 21, 2026
4 checks passed
@mafintosh
mafintosh deleted the invalidation branch October 21, 2026 15:03
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.

2 participants