-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds offline key resolution on ipns mount. #2266
Conversation
Uses the local repo when an online public key resolution fails on mount. This is particularly useful in tests or other young nodes where its public key may not yet exist on the network. License: MIT Signed-off-by: Stephen Whitmore <[email protected]>
this mostly looks good to me... it just feels kinda weird to have a resolve fail, then try again a different way... @jbenet thoughts? |
(~sacrificing C over P?) |
@rht yeah, exactly |
This is one of a bunch of different ways we could handle this. I approached this from two UX angles:
Some alternatives to this PR's approach for each:
|
I think the resolve here should return immediately correctly here. Since there is no network the lookup fails to find any other records beyond the node's own, and thus uses that one. The solution here (using an offline routing system) is not the right one; we should be fixing the underlying problems in "why resolve is not returning our own record" as valid. |
Agreed. I'm discussing now how we'll achieve this at the routing level in IRC (#ipfs). Closing this PR, since the fix isn't going to resemble this approach. |
For those landing here via a search: since 0.4.19 offline resolution is supported via |
Uses the local repo when an online public key resolution fails on mount.
This is particularly useful in tests or other young nodes where its
public key may not yet exist on the network.
License: MIT
Signed-off-by: Stephen Whitmore [email protected]