File tree Expand file tree Collapse file tree
src/main/java/cash/ird/walletd Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import cash .ird .walletd .model .request .BlockRange ;
77import cash .ird .walletd .model .request .Key ;
88import cash .ird .walletd .model .response .*;
9+ import cash .ird .walletd .rpc .HttpClient ;
910import cash .ird .walletd .rpc .WalletdClient ;
1011import cash .ird .walletd .rpc .exception .IridiumWalletdException ;
1112import cash .ird .walletd .rpc .method .RequestMethod ;
@@ -33,6 +34,10 @@ public IridiumClient(String url) {
3334 this .walletdClient = new WalletdClient (url );
3435 }
3536
37+ public IridiumClient (String url , HttpClient httpClient ) {
38+ this .walletdClient = new WalletdClient (url , httpClient );
39+ }
40+
3641 @ Override
3742 public boolean reset () throws IridiumWalletdException {
3843 return this .walletdClient .doRequest (RequestMethod .RESET , NoopResponse .class ) != null ;
You can’t perform that action at this time.
0 commit comments