Changing wallet error message from litecoind
Since plenty scrypt based currencies are supported, changed error message to say `wallet` instead of `litecoind` when failing to connect to RPC service.
This commit is contained in:
parent
014813603e
commit
2dd333b5d8
@ -50,7 +50,7 @@ if ($user->isAuthenticated()) {
|
|||||||
$notification->sendNotification($_SESSION['USERDATA']['id'], 'manual_payout', $aMailData);
|
$notification->sendNotification($_SESSION['USERDATA']['id'], 'manual_payout', $aMailData);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to litecoind RPC service', 'TYPE' => 'errormsg');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to wallet RPC service', 'TYPE' => 'errormsg');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Insufficient funds, you need more than ' . $config['txfee'] . ' ' . $conifg['currency'] . ' to cover transaction fees', 'TYPE' => 'errormsg');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Insufficient funds, you need more than ' . $config['txfee'] . ' ' . $conifg['currency'] . ' to cover transaction fees', 'TYPE' => 'errormsg');
|
||||||
|
|||||||
@ -13,7 +13,7 @@ if ($bitcoin->can_connect() === true){
|
|||||||
$dBalance = $bitcoin->query('getbalance');
|
$dBalance = $bitcoin->query('getbalance');
|
||||||
} else {
|
} else {
|
||||||
$dBalance = 0;
|
$dBalance = 0;
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to litecoind RPC service: ' . $bitcoin->can_connect(), 'TYPE' => 'errormsg');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to wallet RPC service: ' . $bitcoin->can_connect(), 'TYPE' => 'errormsg');
|
||||||
}
|
}
|
||||||
|
|
||||||
$smarty->assign("BALANCE", $dBalance);
|
$smarty->assign("BALANCE", $dBalance);
|
||||||
|
|||||||
@ -7,7 +7,7 @@ die('Hacking attempt');
|
|||||||
// Check user token
|
// Check user token
|
||||||
$id = $user->checkApiKey($_REQUEST['api_key']);
|
$id = $user->checkApiKey($_REQUEST['api_key']);
|
||||||
|
|
||||||
// Fetch data from litecoind
|
// Fetch data from wallet
|
||||||
if ($bitcoin->can_connect() === true){
|
if ($bitcoin->can_connect() === true){
|
||||||
if (!$dDifficulty = $memcache->get('dDifficulty')) {
|
if (!$dDifficulty = $memcache->get('dDifficulty')) {
|
||||||
$dDifficulty = $bitcoin->query('getdifficulty');
|
$dDifficulty = $bitcoin->query('getdifficulty');
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
if (!defined('SECURITY'))
|
if (!defined('SECURITY'))
|
||||||
die('Hacking attempt');
|
die('Hacking attempt');
|
||||||
|
|
||||||
// Fetch data from litecoind
|
// Fetch data from wallet
|
||||||
if ($bitcoin->can_connect() === true){
|
if ($bitcoin->can_connect() === true){
|
||||||
$dDifficulty = $bitcoin->getdifficulty();
|
$dDifficulty = $bitcoin->getdifficulty();
|
||||||
if (is_array($dDifficulty) && array_key_exists('proof-of-work', $dDifficulty))
|
if (is_array($dDifficulty) && array_key_exists('proof-of-work', $dDifficulty))
|
||||||
@ -13,7 +13,7 @@ if ($bitcoin->can_connect() === true){
|
|||||||
} else {
|
} else {
|
||||||
$dDifficulty = 1;
|
$dDifficulty = 1;
|
||||||
$iBlock = 0;
|
$iBlock = 0;
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to litecoind RPC service: ' . $bitcoin->can_connect(), 'TYPE' => 'errormsg');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to wallet RPC service: ' . $bitcoin->can_connect(), 'TYPE' => 'errormsg');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Top share contributors
|
// Top share contributors
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user