Skip to content

Commit

Permalink
[UPDATE] message only if more than 1 account in wallet and Default ha…
Browse files Browse the repository at this point in the history
…s no funds
  • Loading branch information
iAmShorty committed Feb 13, 2014
1 parent 2f52a8b commit 0e792e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions public/include/admin_checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@
// check if there is more than one account set on wallet
$accounts = $bitcoin->listaccounts();
if (count($accounts) > 1) {
$error[] = "There are " . count($accounts) . " Accounts set in local Wallet. Please ensure that there is enough Balance on the Default Account to avoid issues with payouts done with sendtoaddress or sendmany!!!";
}
foreach ($accounts as $account => $balance) {
if ($account == "" && $balance <= 0) {
$error[] = "Default Account has no liquid funds to pay your miners!";
foreach ($accounts as $account => $balance) {
if ($account == "" && $balance <= 0) {
$error[] = "There are " . count($accounts) . " Accounts set in local Wallet and Default Account has no liquid funds to pay your miners!";
}
}
}
}
Expand Down

0 comments on commit 0e792e3

Please sign in to comment.