Content pfp
Content
@
0 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
@sanjay, when calling grace GetInfo() what is a reasonable timeout? I know it depends on my connection too, let's say connection is as fast as possible, and I'll add some latency to it.
1 reply
0 recast
0 reaction

Sanjay pfp
Sanjay
@sanjay
1-5s should be plenty. It could take longer if the hub is under a lot of load. But the actual call should be pretty fast.
1 reply
0 recast
1 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Thanks! One more question. So I see my hub contacts, and I notice 75.101.154.213 is in it. I try to call HubInfo(), but I get timeout. But if I knew this is hoyt and I use the same call using the domain and ssl enabled, it works. Obv, ssl does not work with the IP, I need a fqdn. Is there a way to connect without SSL?
1 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Not to hoyt specifically, I'm just using it as an example. I want to get the fids associated with the hubs in the contacts list.
1 reply
0 recast
0 reaction

Sanjay pfp
Sanjay
@sanjay
YUou can try connecting via the insecure client first, and then if it fails, try with the SSL client. We do a variation of that here: https://github.com/farcasterxyz/hub-monorepo/blob/1ca66d8cf21c5c98e084175a2bba4b803a85da07/apps/hubble/src/hubble.ts#L1707
1 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
But the SSL will not work, unless I do a reverse lookup on the IP *and* hope that I get the right fqdn. And I'm trying to poll 5k hubs :-) that's way to expensive... Is it feasible to add some more info in the gossip messages (for example, hub operator fid), that can be added to the contacts list? I think we need a bit better telemetry to have better understanding of the network. (Just asking about feasibility, I know it's low in the stack, etc.)
1 reply
0 recast
0 reaction

Sanjay pfp
Sanjay
@sanjay
If you query the contactInfo object for the peer, it should have the dns name if the hub is configured correctly (hoyt should be announcing it's DNS name for example). We have to handle this case for syncing see code here on how to translate from the ContactInfo into a working RPC client https://github.com/farcasterxyz/hub-monorepo/blob/1ca66d8cf21c5c98e084175a2bba4b803a85da07/apps/hubble/src/hubble.ts#L1730
1 reply
0 recast
1 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Yes, it's working! Thank you. I had missed dns_name field in the message...
1 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Follow up: .merkle.zone hubs (I assume they are MM's) have a public IP that does not accept non-SSL connections, but the hostname resolves to a private IP. No big thing for me, just a couple of timeouts which are fine. Just reporting, fyi. Ex: 44.223.114.69 says it's andil.merkle.zone, but andil.merkle.zone resolves to 10.0.1.143.
0 reply
0 recast
0 reaction