Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0adf4b

Browse files
committed
fix url
1 parent 219f766 commit e0adf4b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

blockchain_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818

1919
if TESTNET:
2020
# neither blockchain.info nor blockonomics support testnet
21-
BLOCKCHAININFO_API_URL = "https://api.blockchain.info/haskoin-store/btc"
21+
BLOCKCHAININFO_API_URL = "https://api.blockchain.info/haskoin-store/btc-testnet"
2222
BLOCKONOMICS_API_URL = "https://www.blockonomics.co/api"
2323

2424
BLOCKTRAIL_API_URL = "https://api.blocktrail.com/v1/tbtc"
2525
BLOCKCYPHER_API_URL = "https://api.blockcypher.com/v1/btc/test3"
2626
BITGO_API_URL = "https://test.bitgo.com/api/v1"
2727
BTCCOM_API_URL = "https://chain.api.btc.com/v3"
2828
else:
29-
BLOCKCHAININFO_API_URL = "https://api.blockchain.info/haskoin-store/btc-testnet"
29+
BLOCKCHAININFO_API_URL = "https://api.blockchain.info/haskoin-store/btc"
3030
BLOCKTRAIL_API_URL = "https://api.blocktrail.com/v1/btc"
3131
BLOCKCYPHER_API_URL = "https://api.blockcypher.com/v1/btc/main"
3232
BITGO_API_URL = "https://www.bitgo.com/api/v1"

cacheBalances.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def updateBalancesCache():
1919
rSet("omniwallet:balances:balbook"+str(space[29:]),json.dumps(balances))
2020
#expire balance data after 10 minutes (prevent stale data in case we crash)
2121
rExpire("omniwallet:balances:balbook"+str(space[29:]),600)
22-
2322
except Exception as e:
2423
printmsg("error updating balances: "+str(space)+' '+str(e))
2524
#dbCommit()

0 commit comments

Comments
 (0)