Skip to content

chore(ci): drop the v1 cache fallback and use library helpers in tests - #12

Merged
deadmanoz merged 2 commits into
mainfrom
cache-key
Sep 21, 2026
Merged

deadmanoz merged 2 commits into
mainfrom
cache-key

Conversation

@deadmanoz

Copy link
Copy Markdown
Collaborator

Summary

The workflow's cache restore listed prevouts-v1- as a fallback behind the current prevouts-v2- prefix (sanitycheck.yml). That only ever served the first run after the prefix changed, so it is removed along with the schema sentence that described it. A survey of the three CI modules against python-bitcoinlib 0.12.2 found the evidence code already using the library for parsing, merkle roots, script classification and byte order, and found the two deliberately custom pieces still necessary: the mainnet proof-of-work limit, because the library's PROOF_OF_WORK_LIMIT is far looser than the real genesis target, and the compact-target sign-bit check, because uint256_from_compact does not reject it. Three test spots reversed digests or sliced header bytes by hand; they now call b2lx, lx and CBlockHeader.deserialize.

Testing

All 36 tests pass on the branch and the offline python ci/sanity-check.py is unaffected. The workflow change is exercised by this PR's own run.

The v2 prefix is the only one in use; the v1 restore key was a one-run
transitional fallback and is not needed.
Three test spots reversed digests or sliced header bytes by hand where
b2lx, lx and CBlockHeader.deserialize already do the job.
@deadmanoz
deadmanoz merged commit 8e896cb into main Sep 21, 2026
1 check passed
@deadmanoz
deadmanoz deleted the cache-key branch September 30, 2026 01:34
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.

1 participant