parent
2ae3357b23
commit
627b7a17ff
@ -61,13 +61,13 @@ if ($setting->getValue('disable_manual_payouts') != 1) {
|
|||||||
$log->logError('Failed to verify this users coin address, skipping payout');
|
$log->logError('Failed to verify this users coin address, skipping payout');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} catch (BitcoinClientException $e) {
|
} catch (Exception $e) {
|
||||||
$log->logError('Failed to verify this users coin address, skipping payout');
|
$log->logError('Failed to verify this users coin address, skipping payout');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$txid = $bitcoin->sendtoaddress($aData['coin_address'], $dBalance - $config['txfee']);
|
$txid = $bitcoin->sendtoaddress($aData['coin_address'], $dBalance - $config['txfee']);
|
||||||
} catch (BitcoinClientException $e) {
|
} catch (Exception $e) {
|
||||||
$log->logError('Failed to send requested balance to coin address, please check payout process. Does the wallet cover the amount?');
|
$log->logError('Failed to send requested balance to coin address, please check payout process. Does the wallet cover the amount?');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -123,7 +123,7 @@ if ($setting->getValue('disable_auto_payouts') != 1) {
|
|||||||
$log->logError('Failed to verify this users coin address, skipping payout');
|
$log->logError('Failed to verify this users coin address, skipping payout');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} catch (BitcoinClientException $e) {
|
} catch (Exception $e) {
|
||||||
$log->logError('Failed to verify this users coin address, skipping payout');
|
$log->logError('Failed to verify this users coin address, skipping payout');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ if ($setting->getValue('disable_auto_payouts') != 1) {
|
|||||||
// Send balance, fees are reduced later by RPC Server
|
// Send balance, fees are reduced later by RPC Server
|
||||||
try {
|
try {
|
||||||
$txid = $bitcoin->sendtoaddress($aUserData['coin_address'], $dBalance - $config['txfee']);
|
$txid = $bitcoin->sendtoaddress($aUserData['coin_address'], $dBalance - $config['txfee']);
|
||||||
} catch (BitcoinClientException $e) {
|
} catch (Exception $e) {
|
||||||
$log->logError('Failed to send requested balance to coin address, please check payout process. Does the wallet cover the amount?');
|
$log->logError('Failed to send requested balance to coin address, please check payout process. Does the wallet cover the amount?');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -313,7 +313,7 @@ class BitcoinClient extends jsonRPCClient {
|
|||||||
public function can_connect() {
|
public function can_connect() {
|
||||||
try {
|
try {
|
||||||
$r = $this->getinfo();
|
$r = $this->getinfo();
|
||||||
} catch (BitcoinClientException $e) {
|
} catch (Exception $e) {
|
||||||
return $e->getMessage();
|
return $e->getMessage();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -332,7 +332,7 @@ class User extends Base {
|
|||||||
$this->setErrorMessage('Invalid coin address');
|
$this->setErrorMessage('Invalid coin address');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (BitcoinClientException $e) {
|
} catch (Exception $e) {
|
||||||
$this->setErrorMessage('Unable to verify coin address');
|
$this->setErrorMessage('Unable to verify coin address');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -129,7 +129,7 @@ class jsonRPCClient {
|
|||||||
'content' => $request
|
'content' => $request
|
||||||
));
|
));
|
||||||
$context = stream_context_create($opts);
|
$context = stream_context_create($opts);
|
||||||
if ($fp = fopen($this->url, 'r', false, $context)) {
|
if ($fp = @fopen($this->url, 'r', false, $context)) {
|
||||||
$response = '';
|
$response = '';
|
||||||
while($row = fgets($fp)) {
|
while($row = fgets($fp)) {
|
||||||
$response.= trim($row)."\n";
|
$response.= trim($row)."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user