From 5f1f5202b4c0a9e04b36075635c658e0643b5bb6 Mon Sep 17 00:00:00 2001 From: FreeTrade Date: Sun, 1 Apr 2018 21:08:02 +0700 Subject: [PATCH] Update bitcoin_address.rb --- app/models/bitcoin_address.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bitcoin_address.rb b/app/models/bitcoin_address.rb index 2c09da2..10f3e4e 100644 --- a/app/models/bitcoin_address.rb +++ b/app/models/bitcoin_address.rb @@ -10,7 +10,7 @@ def request_balance url end def update_balance - res = request_balance("http://www.fuzzbawls.pw/explore/HOdlcoin/api_fetch.php?method=address_immature_balance&address=#{self.bitcoin_address}") + res = request_balance("http://hodl.amit.systems:1781/ext/getbalance/#{self.bitcoin_address}") if res!=false if ( (new_balance=res.to_i) >= 0) and (new_balance != self.balance)