Skip to content

Commit 9336608

Browse files
committed
Merge pull request #2426 from xisi/master
added admin check to throw a notice in admin_checks for issue #2424
2 parents 18a6f58 + 80be081 commit 9336608

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/admin_checks.php

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
}
2323
}
2424

25+
// check if fees are 0 and ap/mp tx fees are also set to 0 -> issue #2424
26+
if ($config['fees'] == 0 && ($config['txfee_auto'] == 0 || $config['txfee_manual'] == 0)) {
27+
$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.";
28+
}
29+
2530
// check if memcache isn't available but enabled in config -> error
2631
if (!class_exists('Memcached') && $config['memcache']['enabled']) {
2732
$error[] = "You have memcached enabled in your config and it's not available as a PHP module. Install the package on your system.";

0 commit comments

Comments
 (0)