From d7e33bac6c92277fd54b341becd3971c8d60176c Mon Sep 17 00:00:00 2001 From: FreeTrade Date: Thu, 12 Apr 2018 02:01:51 +0700 Subject: [PATCH] Update bitcoin_address.rb --- app/models/bitcoin_address.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/bitcoin_address.rb b/app/models/bitcoin_address.rb index 186aec8..798aa68 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://hodl.amit.systems:1781/ext/getbalance/#{self.bitcoin_address}") + res = request_balance("http://hodl.amit.systems:1781/ext/getbalance/#{self.bitcoin_address}").tr('.', '') if res!=false if ( (new_balance=res.to_i) >= 0) and (new_balance != self.balance) @@ -20,7 +20,7 @@ def update_balance touch :updated_at # push it to the end of the queue end else - #log.warn "failed to retrieve balance for bitcoin address #{self.bitcoin_address}" + log.warn "failed to retrieve balance for bitcoin address #{self.bitcoin_address}" end end