From 105a77ac6b21685f6ae588c5faeda41a0de73a10 Mon Sep 17 00:00:00 2001 From: FreeTrade Date: Mon, 14 May 2018 13:06:06 +0800 Subject: [PATCH] Update signature.rb --- app/models/signature.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/signature.rb b/app/models/signature.rb index 6498ca2..10ac23a 100644 --- a/app/models/signature.rb +++ b/app/models/signature.rb @@ -27,7 +27,7 @@ def create_bitcoin_address_if_needed if btc_addr = BitcoinAddress.find_by_bitcoin_address(signature_address) self.bitcoin_address_id = btc_addr.id else - res = Net::HTTP.get(URI.parse("http://hodl.amit.systems:1781/ext/getbalance/#{signature_address}")).gsub(/\W/, '') + res = Net::HTTP.get(URI.parse("http://hodl.amit.systems:81/ext/getbalance/#{signature_address}")).gsub(/\W/, '') if (balance=res.to_i) > 0 btc_addr = BitcoinAddress.create({bitcoin_address: signature_address, balance: balance }) self.bitcoin_address_id = btc_addr.id