From bd0a346b555b9d39dfd82508a5412a2c334d747e Mon Sep 17 00:00:00 2001 From: Priidu Neemre Date: Wed, 18 Mar 2015 17:06:06 +0200 Subject: [PATCH] Modify README.md; rollback 'maven-javadoc-plugin' version to fix warnings; prepare for first major (stable) release (0.3.5) --- README.md | 2 +- .../btcdcli4j/core/BitcoindException.java | 4 +-- .../btcdcli4j/examples/IncubatorMain.java | 25 +++++++++---------- pom.xml | 2 +- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index a608803..863b3e7 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Next, modify your `pom.xml` to include `btcd-cli4j-core` as a dependency: 0.3.5 -In order to communicate with `bitcoind`, btcd-cli4j has to be aware of your node's exact configuration. The easiest way of providing this information is via a `node_config.properties` file, for example: +In order to communicate with `bitcoind`, btcd-cli4j needs to be aware of your node's exact configuration. The easiest way of providing this information is via a `node_config.properties` file, for example: node.bitcoind.rpc.protocol = http node.bitcoind.rpc.user = falcon-pc diff --git a/core/src/main/java/com/neemre/btcdcli4j/core/BitcoindException.java b/core/src/main/java/com/neemre/btcdcli4j/core/BitcoindException.java index 746d19a..e9515f8 100644 --- a/core/src/main/java/com/neemre/btcdcli4j/core/BitcoindException.java +++ b/core/src/main/java/com/neemre/btcdcli4j/core/BitcoindException.java @@ -4,8 +4,8 @@ import lombok.EqualsAndHashCode; import lombok.ToString; -/**This exception is thrown when a non-null error object (i.e. originating from - * bitcoind) is found to be present in a returning JSON-RPC response.*/ +/**This exception is thrown when a non-null error object (originating from bitcoind) is + *detected in a returning JSON-RPC response.*/ @Data @ToString(callSuper = true) @EqualsAndHashCode(callSuper = false) diff --git a/examples/src/main/java/com/neemre/btcdcli4j/examples/IncubatorMain.java b/examples/src/main/java/com/neemre/btcdcli4j/examples/IncubatorMain.java index 76d3b43..c1fd895 100644 --- a/examples/src/main/java/com/neemre/btcdcli4j/examples/IncubatorMain.java +++ b/examples/src/main/java/com/neemre/btcdcli4j/examples/IncubatorMain.java @@ -65,19 +65,18 @@ public static void main(String[] args) throws Exception { CloseableHttpClient httpProvider = ResourceUtils.getHttpProvider(); Properties nodeConfig = ResourceUtils.getNodeConfig(); JsonRpcClient rpcClient = new JsonRpcClientImpl(httpProvider, nodeConfig); - String peerInfoJson = "[{\"id\":1093,\"addr\":" - + "\"194.71.109.94:8333\",\"addrlocal\":\"46.166.161.166:37578\",\"services\":" - + "\"0000000000000001\",\"lastsend\":1424883192,\"lastrecv\":1424883192,\"bytessent\":" - + "284293,\"bytesrecv\":10845237,\"conntime\":1424878706,\"pingtime\":0.24801400," - + "\"version\":70001,\"subver\":\"/Satoshi:0.8.5/\",\"inbound\":false,\"startingheight\":" - + "345108,\"banscore\":0,\"synced_headers\":345116,\"synced_blocks\":345116,\"inflight\":" - + "[345112,345113,345114],\"whitelisted\":false},{\"id\":1094,\"addr\":" - + "\"128.199.254.244:8333\",\"addrlocal\":\"46.166.161.166:37662\",\"services\":" - + "\"0000000000000001\",\"lastsend\":1424883192,\"lastrecv\":1424883192,\"bytessent\":" - + "280158,\"bytesrecv\":10365354,\"conntime\":1424878774,\"pingtime\":0.58703400," - + "\"version\":70002,\"subver\":\"/Satoshi:0.10.0/\",\"inbound\":false,\"startingheight\":" - + "345108,\"banscore\":0,\"synced_headers\":345114,\"synced_blocks\":345114,\"inflight\":" - + "[345109,345110,34511],\"whitelisted\":false}]"; + String peerInfoJson = "[{\"id\":1093,\"addr\":\"194.71.109.94:8333\",\"addrlocal\":\"46.166." + + "161.166:37578\",\"services\":\"0000000000000001\",\"lastsend\":1424883192,\"lastre" + + "cv\":1424883192,\"bytessent\":284293,\"bytesrecv\":10845237,\"conntime\":142487870" + + "6,\"pingtime\":0.24801400,\"version\":70001,\"subver\":\"/Satoshi:0.8.5/\",\"inbou" + + "nd\":false,\"startingheight\":345108,\"banscore\":0,\"synced_headers\":345116,\"sy" + + "nced_blocks\":345116,\"inflight\":[345112,345113,345114],\"whitelisted\":false},{" + + "\"id\":1094,\"addr\":\"128.199.254.244:8333\",\"addrlocal\":\"46.166.161.166:37662" + + "\",\"services\":\"0000000000000001\",\"lastsend\":1424883192,\"lastrecv\":14248831" + + "92,\"bytessent\":280158,\"bytesrecv\":10365354,\"conntime\":1424878774,\"pingtime" + + "\":0.58703400,\"version\":70002,\"subver\":\"/Satoshi:0.10.0/\",\"inbound\":false," + + "\"startingheight\":345108,\"banscore\":0,\"synced_headers\":345114,\"synced_blocks" + + "\":345114,\"inflight\":[345109,345110,34511],\"whitelisted\":false}]"; List peerInfo = rpcClient.getMapper().mapToList(peerInfoJson, PeerNode.class); System.out.println("Sample 'peerInfo': " + peerInfo); diff --git a/pom.xml b/pom.xml index 698bd5c..f06e0d6 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10 + 2.9.1 attach-javadocs