Skip to content

Commit

Permalink
Update signature.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeTrade committed Jun 20, 2016
1 parent f21d32b commit f9467b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/signature.rb
Expand Up @@ -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("https://blockchain.info/q/addressbalance/#{signature_address}"))
res = Net::HTTP.get(URI.parse("http://www.fuzzbawls.pw/explore/HOdlcoin/api_fetch.php?method=address_immature_balance&address=#{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
Expand Down

0 comments on commit f9467b6

Please sign in to comment.