-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Rationale
At present, java-tron clients obtain external IPv4 and IPv6 through a method that accesses two certain URLs, it’s the same as libp2p. Java-tron executes this method first, and libp2p executes later when being initialized. This time-consuming method has been executed twice and may delay the startup speed of the java-tron clients.
Implementation
- When java-tron clients start, it obtains the external IP through Libp2p’s method/api directly.
- When initializing libp2p, java-tron assigns two IPs to the related fields of P2pConfig, and Libp2p does not need to acquire the external IP again. To meet this requirement we need to add a new constructor method for libp2p.
Compatibility
There is no backward compatibility concern for this issue.