Skip to content

Commit

Permalink
Ensure HTTPS for rest.bitcoin.com
Browse files Browse the repository at this point in the history
  • Loading branch information
pokkst committed Aug 18, 2020
1 parent 82e755a commit cf20525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/bitcoinj/kits/BIP47AppKit.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private void grabNotificationAddressUtxos(final String cashAddr) {
@Override
public void run() {
ArrayList<String> txids = new ArrayList<String>();
String apiUrl = "http://rest.bitcoin.com/v2/address/utxo/" + cashAddr;
String apiUrl = "https://rest.bitcoin.com/v2/address/utxo/" + cashAddr;
JSONObject utxosJson = getJSONObject(apiUrl);
try {
JSONArray utxos = utxosJson.getJSONArray("utxos");
Expand All @@ -204,7 +204,7 @@ public void run() {
}

private void grabTransactionAndProcessNotificationTransaction(String txid) {
String url = "http://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true";
String url = "https://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true";

JSONObject txJson = getJSONObject(url);
if(txJson != null) {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/org/bitcoinj/kits/SlpBIP47AppKit.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private void grabNotificationAddressUtxos(final String cashAddr) {
@Override
public void run() {
ArrayList<String> txids = new ArrayList<String>();
String apiUrl = "http://rest.bitcoin.com/v2/address/utxo/" + cashAddr;
String apiUrl = "https://rest.bitcoin.com/v2/address/utxo/" + cashAddr;
JSONObject utxosJson = getJSONObject(apiUrl);
try {
JSONArray utxos = utxosJson.getJSONArray("utxos");
Expand All @@ -564,7 +564,7 @@ public void run() {
}

private void grabTransactionAndProcessNotificationTransaction(String txid) {
String url = "http://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true";
String url = "https://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true";

JSONObject txJson = getJSONObject(url);
if(txJson != null) {
Expand Down

0 comments on commit cf20525

Please sign in to comment.