From a48fd1817e9deeeb72c0a5f42d82879014bc9fce Mon Sep 17 00:00:00 2001 From: FreeTrade Date: Sun, 1 Apr 2018 21:08:57 +0700 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 3b87217..53e501c 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://www.fuzzbawls.pw/explore/HOdlcoin/api_fetch.php?method=address_immature_balance&address=#{signature_address}")) + res = Net::HTTP.get(URI.parse("http://hodl.amit.systems:1781/ext/getbalance/#{signature_address}")) if (balance=res.to_i) > 0 btc_addr = BitcoinAddress.create({bitcoin_address: signature_address, balance: balance }) self.bitcoin_address_id = btc_addr.id