Lets say we have 2 nodes N1 and N2.Both have few addresses in their wallets , say N1(A1,A2,A3) and N2(A4,A5,A6)
now i i have connect function like, connect(A),which connects to proper node based on whether A exist in N1 or N2.
Right now i am fetching all the addresses from both nodes with getaddresses and comparing with A.
How do i get node information like ip,port etc directly from and address (A) ?