Skip to content

Commit

Permalink
Fixed: confirmations parameter now compared with correctly in getBala…
Browse files Browse the repository at this point in the history
…nce()
  • Loading branch information
mythril committed Jun 2, 2014
1 parent 183d172 commit 15bbb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/WalletProviders/Blockchain.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getBalance($confirmations = 1) {

foreach ($decoded['unspent_outputs'] as $output) {
if (!empty($output['confirmations'])
&& $output['confirmations'] > $confirmations) {
&& $output['confirmations'] >= $confirmations) {
$balance = $balance->add(Amount::fromSatoshis(
$output['value']
));
Expand Down

0 comments on commit 15bbb9d

Please sign in to comment.