Skip to content

Commit

Permalink
[UPDATE] Return negative balance if main is negative
Browse files Browse the repository at this point in the history
  • Loading branch information
MPOS123 committed Feb 15, 2014
1 parent b0baa29 commit d1f3f5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/include/classes/bitcoinwrapper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ public function getrealbalance() {
return $dBalance;
} else {
$dMainBalance = $aAccounts[''];
//$dUnconfirmed = $dMainBalance - $dBalance;
if ($dMainBalance < 0) return $dMainBalance;
$dUnconfirmed = $dMainBalance - abs($dBalance);
//return $dMainBalance - $dUnconfirmed;
return $dMainBalance - abs($dUnconfirmed)
return $dMainBalance - abs($dUnconfirmed);
}
}
public function getdifficulty() {
Expand Down

0 comments on commit d1f3f5d

Please sign in to comment.