[PR #7327] [MERGED] Port map: TypedDataComponent.encodeValue is Component::code #7496

Closed
opened 2026-11-03 06:40:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7327
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/vol-d-rest-008


📝 Commits (4)

  • 7d99bcf port map: TypedDataComponent.encodeValue is Component::code
  • 443472d port map: the networkable registries are the SYNCHRONIZED list
  • dde4443 Merge remote-tracking branch 'upstream/main' into HEAD
  • 3b40418 Merge main into #7327

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 tools/port_map/rest-008.tsv (+2 -2)

📄 Description

Rows of tools/port_map/rest-008.tsv (149 rows, map-check clean against 26.3): registries, section positions, the component classes and the dispense behaviours.

Rows

  • TypedDataComponent.encodeValue — skip:java → port crates/horizon-protocol/src/item/hash.rs::Component::code. It was filed as codec plumbing ("codec"), but Component::code opens with /// The component's `Codec` form hashed (`TypedDataComponent.encodeValue(hashOps)`), one arm per component kind, down to the two kinds that have no persistent codec (map_post_processing, creative_slot_lock) — which is the method, not a step inside something larger. The ledger already listed it ported through that citation.
  • RegistrySynchronization.networkSafeRegistries — the note left it undecided which registries count as networkable ("unsure … decided when SyncData is built"). It is decided in one place: lan/data.rs:18 SYNCHRONIZED holds 32 registries in RegistryDataLoader.SYNCHRONIZED_REGISTRIES' order, and SyncData::registry_packets (lan/data.rs:337) packs exactly that list, so the packer cannot drift from it.

The other hedged rows of this batch (SectionPos.aroundChunk, DataComponentLookup.findAll, ComponentStorage.findMatching, DataComponentPatch.forget, and the nine item predicates) were resolved by cd7c4505d, which is in main; this PR does not touch them. I re-read the two rows above against that version of the file.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/rest-008.tsv
149 rows, no problems.

Proven: both rows. Component::code is read in crates/horizon-protocol/src/item/hash.rs at this commit, including the MAP_POST_PROCESSING/CREATIVE_SLOT_LOCK early Nones; SYNCHRONIZED and registry_packets are read in crates/horizon-client/src/lan/data.rs, and the registry count comes from that constant.

Not proven: neither row changes behaviour — the flip records code that already exists under a wrong verdict, and the note now names the list rather than leaving it open. I did not compare SYNCHRONIZED against the vanilla constant itself (only against its doc comment in lan/data.rs), and nothing here re-checks the cauldron or dispenser rows of this batch.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7327 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/vol-d-rest-008` --- ### 📝 Commits (4) - [`7d99bcf`](https://github.com/horizon-rust/horizon/commit/7d99bcf513b83ca1a028963fedaddbce3580549b) port map: TypedDataComponent.encodeValue is Component::code - [`443472d`](https://github.com/horizon-rust/horizon/commit/443472d16c43a47c914a8f4edf18df5bda988eea) port map: the networkable registries are the SYNCHRONIZED list - [`dde4443`](https://github.com/horizon-rust/horizon/commit/dde444351fc87694e152b98f0380c104abbbb0c7) Merge remote-tracking branch 'upstream/main' into HEAD - [`3b40418`](https://github.com/horizon-rust/horizon/commit/3b404187300c9ed23f9a044d497cb86756214c4a) Merge main into #7327 ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-008.tsv` (+2 -2) </details> ### 📄 Description Rows of `tools/port_map/rest-008.tsv` (149 rows, map-check clean against 26.3): registries, section positions, the component classes and the dispense behaviours. **Rows** - `TypedDataComponent.encodeValue` — `skip:java` → `port crates/horizon-protocol/src/item/hash.rs::Component::code`. It was filed as codec plumbing ("codec"), but `Component::code` opens with `` /// The component's `Codec` form hashed (`TypedDataComponent.encodeValue(hashOps)`) ``, one arm per component kind, down to the two kinds that have no persistent codec (`map_post_processing`, `creative_slot_lock`) — which is the method, not a step inside something larger. The ledger already listed it ported through that citation. - `RegistrySynchronization.networkSafeRegistries` — the note left it undecided which registries count as networkable ("unsure … decided when SyncData is built"). It is decided in one place: `lan/data.rs:18` `SYNCHRONIZED` holds 32 registries in `RegistryDataLoader.SYNCHRONIZED_REGISTRIES`' order, and `SyncData::registry_packets` (`lan/data.rs:337`) packs exactly that list, so the packer cannot drift from it. The other hedged rows of this batch (`SectionPos.aroundChunk`, `DataComponentLookup.findAll`, `ComponentStorage.findMatching`, `DataComponentPatch.forget`, and the nine item predicates) were resolved by `cd7c4505d`, which is in `main`; this PR does not touch them. I re-read the two rows above against that version of the file. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/rest-008.tsv 149 rows, no problems. ``` **Proven:** both rows. `Component::code` is read in `crates/horizon-protocol/src/item/hash.rs` at this commit, including the `MAP_POST_PROCESSING`/`CREATIVE_SLOT_LOCK` early `None`s; `SYNCHRONIZED` and `registry_packets` are read in `crates/horizon-client/src/lan/data.rs`, and the registry count comes from that constant. **Not proven:** neither row changes behaviour — the flip records code that already exists under a wrong verdict, and the note now names the list rather than leaving it open. I did not compare `SYNCHRONIZED` against the vanilla constant itself (only against its doc comment in `lan/data.rs`), and nothing here re-checks the cauldron or dispenser rows of this batch. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7496
No description provided.