Update liquid_payout.php

formatting
This commit is contained in:
myrinx 2014-01-10 12:18:28 +01:00 committed by Sebastian Grewe
parent be77b05b12
commit 75f35d80b1

View File

@ -8,20 +8,21 @@ require_once('shared.inc.php');
// Check For RPC Connection
if ($bitcoin->can_connect() === true){
$dBalance = $bitcoin->getbalance();
// Check Wallet Balance
$log->logDebug("The Wallet Balance is " .$dBalance. "\n");
$dGetInfo = $bitcoin->getinfo();
$dBalance = $bitcoin->getbalance();
// Check Wallet Balance
$log->logDebug("The Wallet Balance is " .$dBalance. "\n");
$dGetInfo = $bitcoin->getinfo();
// Check for POS Mint
if (is_array($dGetInfo) && array_key_exists('newmint', $dGetInfo)) {
$dNewmint = $dGetInfo['newmint'];
// Check for POS Mint
$log->logDebug("Current Mint is: " .$dNewmint);
} else {
if (is_array($dGetInfo) && array_key_exists('newmint', $dGetInfo)) {
$dNewmint = $dGetInfo['newmint'];
$log->logDebug("Current Mint is: " .$dNewmint);
} else {
$dNewmint = -1;
}
}
} else {
else {
$dBalance = 0;
$dNewmint = -1;
$log->logError('Unable to connect to wallet RPC service');
@ -50,7 +51,7 @@ if($send > $dThreshold){
$log->logInfo("No wallet address set\n");
}
}
else{
else {
$log->logInfo("Final Sending Amount Not Exceed threshold : " .$send. "\n");
}
?>