mirror of https://github.com/m2049r/xmrwallet.git
scan only for 0.15 nodes (#633)
This commit is contained in:
parent
2258cb7096
commit
551c3b9fb6
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue