File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
main/java/net/osslabz/electrum
test/java/net/osslabz/electrum Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44
55 <groupId >net.osslabz</groupId >
66 <artifactId >electrum-client</artifactId >
7- <version >0.0.2 -SNAPSHOT</version >
7+ <version >0.2.16 -SNAPSHOT</version >
88
99 <name >${project.groupId} :${project.artifactId} </name >
1010 <description >A Electrum (JSON-RPC) client using JAVA NIO.</description >
5656 <dependency >
5757 <groupId >net.osslabz</groupId >
5858 <artifactId >bitcoin-commons</artifactId >
59- <version >0.3.0 </version >
59+ <version >0.2.16 </version >
6060 </dependency >
6161
6262 <!-- test dependencies -->
Original file line number Diff line number Diff line change 66import java .util .Collections ;
77import java .util .List ;
88import net .osslabz .bitcoin .BitcoinUtils ;
9+ import net .osslabz .bitcoin .Network ;
910import net .osslabz .electrum .result .ServerVersion ;
1011import net .osslabz .electrum .result .TxListEntry ;
1112import net .osslabz .jsonrpc .JsonRpcTcpClient ;
12- import org .bitcoinj .base .BitcoinNetwork ;
1313import org .slf4j .Logger ;
1414import org .slf4j .LoggerFactory ;
1515
@@ -18,14 +18,14 @@ public class ElectrumClient implements Closeable {
1818
1919 private static final Logger log = LoggerFactory .getLogger (ElectrumClient .class );
2020
21- private final BitcoinNetwork network ;
21+ private final Network network ;
2222
2323 private final ResultMapper resultMapper = new ResultMapper ();
2424
2525 private final JsonRpcTcpClient client ;
2626
2727
28- public ElectrumClient (BitcoinNetwork network , String host , int port ) {
28+ public ElectrumClient (Network network , String host , int port ) {
2929
3030 this .network = network ;
3131 this .client = new JsonRpcTcpClient (host , port );
Original file line number Diff line number Diff line change 11package net .osslabz .electrum ;
22
33import java .util .List ;
4+ import net .osslabz .bitcoin .Network ;
45import net .osslabz .electrum .result .ServerVersion ;
56import net .osslabz .electrum .result .TxListEntry ;
6- import org .bitcoinj .base .BitcoinNetwork ;
77import org .slf4j .Logger ;
88import org .slf4j .LoggerFactory ;
99
@@ -15,7 +15,7 @@ class ElectrumClientTest {
1515
1616 public static void main (String [] args ) throws Exception {
1717
18- ElectrumClient electrumClient = new ElectrumClient (BitcoinNetwork . MAINNET , "deathgate" , 50001 );
18+ ElectrumClient electrumClient = new ElectrumClient (Network . MAIN_NET , "deathgate" , 50001 );
1919 ServerVersion bl = electrumClient .getServerVersion ();
2020
2121 log .debug ("result {}" , bl );
You can’t perform that action at this time.
0 commit comments