fix(arweave-scheduler): consume completed local prefills (marker-aware, local-only) - #9
Open
xylophonez wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an opt-in, marker-aware, local-only consumption path to the Arweave scheduler sync, so a node that has pre-populated a block range into its local store (via
~copycat@1.0headers mode) indexes from that local data and never falls back to a remote fetch for a covered range.Behaviour
scheduler-prefilledread policy; unset, behaviour is unchanged.Dependencies (for review)
candidate/fast-arweave-scheduler-1— thedev_arweave_scheduler_syncdevice does not exist onedgeyet, so this necessarily stacks on that candidate work.dev_copycat_arweave), which is what makes a completion marker a trustworthy guarantee. This scheduler change is only safe on top of that.Scope
Single file:
src/preloaded/process/dev_arweave_scheduler_sync.erl. No core/store/HTTP changes.Motivation
Enables a resource-constrained node (e.g. a phone) to bootstrap its scheduler from a locally-verified, native-peer-fed block cache with a hard no-remote-escape guarantee, instead of racing public gateways per transaction.