From 80be08135847708cc6a1dc8a23a4dbb8f167d6c3 Mon Sep 17 00:00:00 2001 From: xisi Date: Sun, 24 May 2015 21:11:22 -0400 Subject: [PATCH 1/4] added admin check to throw a notice in admin_checks for issue #2424 --- include/admin_checks.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/admin_checks.php b/include/admin_checks.php index 3ab431f9..83d62895 100644 --- a/include/admin_checks.php +++ b/include/admin_checks.php @@ -22,6 +22,11 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][ } } + // check if fees are 0 and ap/mp tx fees are also set to 0 -> issue #2424 + if ($config['fees'] == 0 && ($config['txfee_auto'] == 0 || $config['txfee_manual'] == 0)) { + $notice[] = "Having your pool fees set to 0 and tx fees also set to 0 can cause a problem where the wallet cannot payout, consider setting the txfee to a very low amount, ie. 0.0001 to avoid this."; + } + // check if memcache isn't available but enabled in config -> error if (!class_exists('Memcached') && $config['memcache']['enabled']) { $error[] = "You have memcached enabled in your config and it's not available as a PHP module. Install the package on your system."; From b033a9888ba291a1482b473dbdc2ee1b5fde4e3b Mon Sep 17 00:00:00 2001 From: owlhooter Date: Wed, 27 May 2015 09:02:50 -0500 Subject: [PATCH 2/4] Add anonymous check for users on block finder email notification --- cronjobs/findblock.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cronjobs/findblock.php b/cronjobs/findblock.php index 75991e94..eb848180 100755 --- a/cronjobs/findblock.php +++ b/cronjobs/findblock.php @@ -157,8 +157,12 @@ if (empty($aAllBlocks)) { // Notify users $aAccounts = $notification->getNotificationAccountIdByType('new_block'); if (is_array($aAccounts)) { - - $finder = $user->getUserName($iAccountId); + if ($user->getUserNameAnon($iAccountId) == 1) { + $finder = "Anonymous"; + } else { + $finder = $user->getUserName($iAccountId); + } + foreach ($aAccounts as $aData) { $aMailData['height'] = $aBlock['height']; $aMailData['subject'] = 'New Block'; From d1d392a44861349ef0e0b0bff5f2095cbb004429 Mon Sep 17 00:00:00 2001 From: owlhooter Date: Wed, 27 May 2015 09:04:41 -0500 Subject: [PATCH 3/4] Add anonymous check for users on block finder email notification --- include/classes/user.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/classes/user.class.php b/include/classes/user.class.php index b7b56da6..2c8a4d29 100644 --- a/include/classes/user.class.php +++ b/include/classes/user.class.php @@ -31,6 +31,9 @@ class User extends Base { public function getUserName($id) { return $this->getSingle($id, 'username', 'id'); } + public function getUserNameAnon($id) { + return $this->getSingle($id, 'is_anonymous', 'id'); + } public function getUserNameByEmail($email) { return $this->getSingle($email, 'username', 'email', 's'); } From 2985bab2edeaf7a0b77b2022251e2b0c93b34ee7 Mon Sep 17 00:00:00 2001 From: murai-y Date: Sat, 11 Jul 2015 12:12:52 +0000 Subject: [PATCH 4/4] repair 'User Information' table in 'Admin Panel > Users > user Info' in calse payout_system=pps --- templates/bootstrap/admin/user/default.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/bootstrap/admin/user/default.tpl b/templates/bootstrap/admin/user/default.tpl index 2ef58e08..a6a38247 100644 --- a/templates/bootstrap/admin/user/default.tpl +++ b/templates/bootstrap/admin/user/default.tpl @@ -95,7 +95,7 @@ Est. Donation Est. Payout {else} - Est. 24 Hours + Est. 24 Hours {/if} Balance Reg. Date @@ -118,7 +118,7 @@ {$USERS[user].estimates.donation|number_format:"8"} {$USERS[user].estimates.payout|number_format:"8"} {else} - {$USERS[user].estimates.hours24|number_format:"8"} + {$USERS[user].estimates.hours24|number_format:"8"} {/if} {$USERS[user].balance|number_format:"8"} {$USERS[user].signup_timestamp|date_format:$GLOBAL.config.date} @@ -147,4 +147,4 @@ - \ No newline at end of file +