public static List<Map<Number160, PeerStatistic>> unflatten(Collection<PeerAddress> map, PeerAddress sender) {
PeerMapConfiguration peerMapConfiguration = new PeerMapConfiguration(sender.peerId());
PeerMap peerMap = new PeerMap(peerMapConfiguration);
for (PeerAddress peerAddress : map) {
peerMap.peerFound(peerAddress, null, null);
}
return peerMap.peerMapVerified();
}
public static Collection<PeerAddress> flatten(List<Map<Number160, PeerStatistic>> maps) {