Skip to content

Document interlinksProof in the PopowHeader OpenAPI schema - #2459

Merged
kushti merged 1 commit into
ergoplatform:v6.0.4from
Ergologica:docs/popow-header-interlinks-proof-openapi
Aug 11, 2026
Merged

Document interlinksProof in the PopowHeader OpenAPI schema#2459
kushti merged 1 commit into
ergoplatform:v6.0.4from
Ergologica:docs/popow-header-interlinks-proof-openapi

Conversation

@Ergologica

Copy link
Copy Markdown

PoPowHeader's encoder emits interlinksProof (PoPowHeader.scala:126) and its decoder requires it (:134), but the PopowHeader schema in openapi.yaml:1583 listed only header and interlinks. The documented shape did not match the one the node actually serves.

Adds the field, plus a BatchMerkleProof schema matching what batchMerkleProofEncoder (PoPowHeader.scala:81) produces: indices as {index, digest} pairs and proofs as {digest, side} pairs.

Documentation only, no code paths touched. Noticed while reading #1384 — not a bounty claim, that work was @ApexTheory's in #1526.

PoPowHeader's encoder emits interlinksProof and its decoder requires it, but the PopowHeader schema listed only header and interlinks, so the documented shape did not match the one the node serves. Add the field, and a BatchMerkleProof schema matching what batchMerkleProofEncoder produces.

Noticed while reading ergoplatform#1384.
@kushti
kushti changed the base branch from master to v6.0.4 August 11, 2026 09:56
@kushti
kushti merged commit 3522616 into ergoplatform:v6.0.4 Aug 11, 2026
7 of 8 checks passed
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