Skip to content

Commit

Permalink
Modify README.md; rollback 'maven-javadoc-plugin' version to fix warn…
Browse files Browse the repository at this point in the history
…ings; prepare for first major (stable) release (0.3.5)
  • Loading branch information
priiduneemre committed Mar 18, 2015
1 parent 360bf1d commit bd0a346
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Next, modify your `pom.xml` to include `btcd-cli4j-core` as a dependency:
<version>0.3.5</version>
</dependency>

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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**This exception is thrown when a non-null error object (<i>i.e.</i> originating from
* <i>bitcoind</i>) is found to be present in a returning JSON-RPC response.*/
/**This exception is thrown when a non-null error object (originating from <i>bitcoind</i>) is
*detected in a returning JSON-RPC response.*/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<PeerNode> peerInfo = rpcClient.getMapper().mapToList(peerInfoJson, PeerNode.class);
System.out.println("Sample 'peerInfo': " + peerInfo);

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10</version>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down

0 comments on commit bd0a346

Please sign in to comment.