From 551c3b9fb66696985e6e3a1bbd3e25c8ffefba1f Mon Sep 17 00:00:00 2001 From: m2049r Date: Sun, 10 Nov 2019 12:11:01 +0100 Subject: [PATCH] scan only for 0.15 nodes (#633) --- app/src/main/java/com/m2049r/xmrwallet/NodeFragment.java | 1 + app/src/main/java/com/m2049r/xmrwallet/data/NodeInfo.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/com/m2049r/xmrwallet/NodeFragment.java b/app/src/main/java/com/m2049r/xmrwallet/NodeFragment.java index c6c0bef9..e5781d01 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/NodeFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/NodeFragment.java @@ -266,6 +266,7 @@ public class NodeFragment extends Fragment seedList.add(new NodeInfo(new InetSocketAddress("198.74.231.92", 18080))); seedList.add(new NodeInfo(new InetSocketAddress("195.154.123.123", 18080))); seedList.add(new NodeInfo(new InetSocketAddress("212.83.172.165", 18080))); + seedList.add(new NodeInfo(new InetSocketAddress("192.110.160.146", 18080))); d.seedPeers(seedList); d.awaitTermination(NODES_TO_FIND); } diff --git a/app/src/main/java/com/m2049r/xmrwallet/data/NodeInfo.java b/app/src/main/java/com/m2049r/xmrwallet/data/NodeInfo.java index 94c7fa22..b4d3b1bf 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/data/NodeInfo.java +++ b/app/src/main/java/com/m2049r/xmrwallet/data/NodeInfo.java @@ -235,6 +235,8 @@ public class NodeInfo extends Node { String rpcVersion = json.getString("jsonrpc"); if (!RPC_VERSION.equals(rpcVersion)) return false; + if (!json.has("credits")) // introduced in monero v0.15.0 + return false; final JSONObject header = json.getJSONObject( "result").getJSONObject("block_header"); height = header.getLong("height");