Merge pull request #1743 from iAmShorty/check-wallet-accounts
[UPDATE] Removed Wallet Info Message
This commit is contained in:
commit
86ca90fa09
@ -83,14 +83,10 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][
|
|||||||
$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!!!";
|
$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) {
|
foreach ($accounts as $account => $balance) {
|
||||||
if ($account == "") { $account = "Default"; }
|
if ($account == "" && $balance <= 0) {
|
||||||
if ($balance <= 0) {
|
$error[] = "Default Account has no liquid funds to pay your miners!";
|
||||||
$error[] = "Account: <u>" . $account . "</u> has liquid funds to pay your miners but it will not be used!";
|
}
|
||||||
} else {
|
|
||||||
$enotice[] = "Account: <u>" . $account . "</u> has liquid funds to pay your miners! - " . $balance . " " . $config['currency'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user