Skip to content
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

Fix short hostkey lookup #15

Open
lukechampine opened this issue Oct 7, 2019 · 0 comments
Open

Fix short hostkey lookup #15

lukechampine opened this issue Oct 7, 2019 · 0 comments

Comments

@lukechampine
Copy link
Owner

This should work:

user scan 4074d1 1 1 1

But instead it returns:

Scan failed: could not lookup host: host announcement not found

This is because the scanHost function is calling ResolveHostKey on the truncated pubkey (4074d1). ResolveHostKey is only supposed to be used with full pubkeys. So at some point (either before scanHost or within it) we need to be calling LookupHost in order to turn the truncated pubkey into a full pubkey.

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

No branches or pull requests

1 participant