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.
This should work:
But instead it returns:
This is because the
scanHost
function is callingResolveHostKey
on the truncated pubkey (4074d1
).ResolveHostKey
is only supposed to be used with full pubkeys. So at some point (either beforescanHost
or within it) we need to be callingLookupHost
in order to turn the truncated pubkey into a full pubkey.