Skip to content

fix(cli): resolve lite names on both node schemes - #293

Closed
filip-parity wants to merge 1 commit into
fix/291-subname-namehashfrom
fix/299-lite-subnodes
Closed

fix(cli): resolve lite names on both node schemes#293
filip-parity wants to merge 1 commit into
fix/291-subname-namehashfrom
fix/299-lite-subnodes

Conversation

@filip-parity

Copy link
Copy Markdown
Contributor

Description

Stacked on #291 (per-label folding). dotns v0.7.0 — live on paseo since last night — issues a lite name as a subname beneath its numeric container, which is exactly the per-label fold. Older deployments, and names minted before an in-place upgrade, keep the whole dotted label hashed flat. Since the controller ABI is identical between v0.6.0 and v0.7.0 there is nothing to probe, so domainNode asks the registry: folded node if it has a record, legacy flat node otherwise. Both generations resolve on the same chain, and unregistered lite names still read as unregistered everywhere.

Type

  • Bug fix

Package

  • @parity/dotns-cli

Fixes

Fixes paritytech/dotns#299

Testing

Unit tests cover the fold, the legacy fallback, and the unregistered case (320 pass). Live on paseo-v2 v0.7.0: attested a fresh lite name (filipvzerocheck.42) through the gateway — this branch resolves it at the folded node with its owner; released 0.9.0 reports it not-registered. Its container 42 appeared owned by the PopController, as the contracts describe.

truapi is unaffected: it never derives lite nodes (string paths only) — checked while scoping.

dotns v0.7.0 issues a lite name as a subname beneath its numeric
container, which is exactly the per-label fold; older deployments and
names minted before an in-place upgrade keep the whole dotted label
hashed flat under the TLD. The registry says which applies: domainNode
uses the folded node when it has a record and falls back to the legacy
node otherwise, so both generations resolve on the same chain.

Verified on paseo-v2 (upgraded to v0.7.0 tonight): a freshly attested
lite name resolves at its folded node with this change and reads as
not-registered on 0.9.0.

Fixes paritytech/dotns#299
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown

CI Summary

Check Result
PR Title Passed
Labels Passed

Labels

pkg: cli, type: test

@re-gius re-gius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - we can publish this as v0.9.1 since it's not breaking backward compatibility

@filip-parity
filip-parity deleted the branch fix/291-subname-namehash September 11, 2026 16:21
@filip-parity

Copy link
Copy Markdown
Contributor Author

Continued in #294 — this one was auto-closed when its base branch was deleted on #291's merge; same change rebased onto main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants