• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Chia-Network / chia_rs / 36195125301
82%

Build:
DEFAULT BRANCH: main
Ran 25 Sep 2026 10:13PM UTC
Jobs 3
Files 142
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Sep 2026 10:07PM UTC coverage: 82.429% (+0.3%) from 82.17%
36195125301

push

github

web-flow
serde_2026 emission + trusted readers (minimal) (#1511)

* Emit serde_2026 generators; DAG-safe tree hashing for trusted reads

InternedBlockBuilder::finalize() now always emits the generator in
serde_2026 format (interned serialization, magic-prefixed); there is no
classic-emission mode, since cost accounting by interned vbytes and
serde_2026 acceptance both activate at the same height.

node_from_bytes_auto drops its max_blob_size parameter and cap: it's a
policy-free trusted reader (used by additions_and_removals and other
RPC-style reads of already-stored, already-validated blobs), not a
consensus entry point. The cost-derived size cap is enforced separately
by node_from_bytes_2026 on the consensus path. Because a policy-free
reader must accept whatever a backrefs/serde_2026 blob decodes to,
anything hashing its result needs to be DAG-aware (tree_hash_cached)
rather than the naive tree_hash walker, which can diverge exponentially
on crafted inputs; test_tree_hash_cached_deep_dag pins that property.

additions_and_removals switches from node_from_bytes_backrefs to
node_from_bytes_auto so it can read stored post-HF2 (serde_2026) blobs.

Co-authored-by: Cursor <cursoragent@cursor.com>

* wheel: trusted serde_2026 reads for tree_hash_auto and run_program

Adds tree_hash_auto(blob) -> bytes32: sniffs the encoding (classic,
backrefs, or serde_2026) via node_from_bytes_auto, then hashes with
tree_hash_cached. This is the DAG-safe hash trusted readers need to
compute the post-HF2 generator_root from unvalidated wire bytes.

run_chia_program, get_puzzle_and_solution_for_coin(2) switch from
node_from_bytes_backrefs to node_from_bytes_auto so they can also
accept stored serde_2026-encoded generators/puzzles/solutions.

Regenerates chia_rs.pyi via generate_type_stubs.py for the new stub.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Kill prefix-sniffing, add explicit-format serde_2026 API

Every chia-blockchain call site dispatches on block.version or f... (continued)

244 of 258 new or added lines in 8 files covered. (94.57%)

16771 of 20346 relevant lines covered (82.43%)

11407548.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
84.79
2.75% wheel/src/api.rs
2
95.75
0.68% crates/chia-consensus/src/build_interned_block/additional_tests.rs
1
98.26
-0.85% crates/chia-consensus/src/additions_and_removals.rs
Jobs
ID Job ID Ran Files Coverage
1 Linux release Cargo - 36195125301.1 25 Sep 2026 10:54PM UTC 140
75.18
GitHub Action Run
2 Linux release pytest - 36195125301.2 25 Sep 2026 10:24PM UTC 117
59.38
GitHub Action Run
3 Linux dev Cargo - 36195125301.3 25 Sep 2026 10:13PM UTC 140
71.86
GitHub Action Run
Source Files on build 36195125301
  • Tree
  • List 142
  • Changed 12
  • Source Changed 9
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36195125301
  • 6485640d on github
  • Prev Build on main (#35867442106)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc