Update PeerInfo to contain DiscoveredPeerInfo so that it could be passed to selection function and also newPeer/triedPeer can hold it. Make relevant changes in all the relevant classes and module.
P2PPeerInfo contains discoveredInfo: DiscoveredPeerInfo and options: P2PInfoOptions.
Change all the classes and modules to use P2PPeerInfo.
Update Validation functions to use updated P2PPeerInfo.
Description
Update
PeerInfo
to containDiscoveredPeerInfo
so that it could be passed to selection function and also newPeer/triedPeer can hold it. Make relevant changes in all the relevant classes and module.P2PPeerInfo
containsdiscoveredInfo: DiscoveredPeerInfo
andoptions: P2PInfoOptions
.P2PPeerInfo
.P2PPeerInfo
.Review checklist