fix: support RegistryOld fallback for Registry node-resolver-relations #1442
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Acceleration Mismatch
Reviewer Focus (Read This First)
What reviewers should focus on
find-resolver.ts:203-229- Theor()clause that adds RegistryOld fallback and the sorting logic that ensures Registry records take precedence over RegistryOld recordsfind-resolver.ts:242-271- Changed from iterating all node-resolver relations to taking just the first (after sorting). Confirm this matches the intended behavior.Problem & Motivation
Why this exists
ENSRegistryWithFallback, which falls back toRegistryOldstorage for nodes that haven't been migrated to the new registry. The acceleration code wasn't implementing this fallback logic.What Changed (Concrete)
What actually changed
find-resolver.tsnodeResolverRelationdatabase query to include records from both Registry and RegistryOld when querying the ENS Root RegistryDesign & Planning
How this approach was chosen
Approach: Mirror the ENSRegistryWithFallback contract logic in the query layer by fetching from both registries and using sort order to implement precedence.
Alternatives considered:
Why this approach:
Self-Review
What you caught yourself
Downstream & Consumer Impact
Who this affects and how
Impact:
Operators:
Terminology:
Testing Evidence
How this was validated
Testing performed:
Known gaps:
If this is wrong:
d8da6bf26964af9d7eed9e03e53415d37aa96045.addr.reverse)Scope Reductions
What you intentionally didn't do
Deferred:
Risk Analysis
How this could go wrong
Assumptions:
Failure modes:
Blast radius:
Pre-Review Checklist (Blocking)