File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919if 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"
2828else :
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"
Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments