peersMap = peerConncetionModel.getMap();
+ btcNodeByAddress.values().stream()
+ .sorted(Comparator.comparing(BtcNodes.BtcNode::getId))
+ .forEach(btcNode -> {
+ sb.append("");
+ String address = btcNode.getAddress();
+ PeerConncetionInfo peerConncetionInfo = peersMap.get(address);
+ if (peersMap.containsKey(address)) {
+ sb.append("").append(getOperatorInfo(btcNode, address)).append(" | ")
+ .append("").append(getConnectionInfo(peerConncetionInfo)).append(" | ")
+ .append("").append(getNodeInfo(peerConncetionInfo)).append(" | ");
+ sb.append("
");
+ return;
+ }
+
+ address = btcNode.getOnionAddress();
+ peerConncetionInfo = peersMap.get(address);
+ if (peersMap.containsKey(address)) {
+ sb.append("").append(getOperatorInfo(btcNode, address)).append(" | ")
+ .append("").append(getConnectionInfo(peerConncetionInfo)).append(" | ")
+ .append("").append(getNodeInfo(peerConncetionInfo)).append(" | ");
+ } else {
+ /* sb.append("").append(getOperatorInfo(btcNode, null)).append(" | ")
+ .append("").append("n/a").append(" | ");*/
+ }
+ sb.append("");
+ });
+
+ sb.append("