php-mpos/public/include/classes
j4s0n 8c3205a8b2 (#1725) Fix cold wallet check FP and added testnet detection
Without this patch, admin.php checks if it can connect to the wallet service. Regardless of if that check passes or fails, it then checks if the cold wallet address is valid. If the can_connect() test failed, the validateaddress() check will also fail, even if the address is not invalid. To fix this, the validateaddress() check is move to an elseif block in the can_connect() chain.

Additionally, this patch checks to see if the wallet service is running as a testnet. While running as a testnet is perfectly acceptable when testing, the suer should be warned. A lot of folks using the quickstart guide miss this.

A function was added to the Bitcoin class to detect when we are running in a test net. A check was added to admin.php, and the existing can_connect and validateaddress() calls were restructured to solve these issues.
2014-02-10 12:07:08 -05:00
..
api.class.php [ADDED] JSONP support for MPOS API 2014-02-07 09:00:09 +01:00
base.class.php Merge pull request #1642 from MPOS/payout-overhaul 2014-02-04 21:59:22 -08:00
bitcoin.class.php (#1725) Fix cold wallet check FP and added testnet detection 2014-02-10 12:07:08 -05:00
bitcoinwrapper.class.php [UPDATE] Cache getmininginfo too 2014-02-05 17:21:13 +01:00
block.class.php [FIX] Fallback to fixed reward without blocks 2014-02-08 13:46:21 +01:00
csrftoken.class.php changes DEBUG SALT and SALTY from defines to variables 2014-01-29 07:34:50 -05:00
debug.class.php changes DEBUG SALT and SALTY from defines to variables 2014-01-29 07:34:50 -05:00
invitation.class.php [IMPROVED] Logging format 2014-02-07 10:14:56 +01:00
logger.class.php [UPGRADE] Upgraded KLogger Library 2014-02-07 13:40:50 +01:00
mail.class.php blah blah 2014-01-28 07:26:08 -05:00
memcache_ad.class.php [FIX] Suppress potential empty HTTP_USER_AGENT 2014-02-06 16:34:06 +01:00
memcached.class.php blah blah 2014-01-28 07:26:08 -05:00
monitoring.class.php blah blah 2014-01-28 07:26:08 -05:00
news.class.php blah blah 2014-01-28 07:26:08 -05:00
notification.class.php [IMPROVED] Logging format 2014-02-07 10:14:56 +01:00
payout.class.php [IMPROVED] Logging format 2014-02-07 10:14:56 +01:00
roundstats.class.php blah blah 2014-01-28 07:26:08 -05:00
setting.class.php blah blah 2014-01-28 07:26:08 -05:00
share.class.php blah blah 2014-01-28 07:26:08 -05:00
statistics.class.php Merge pull request #1695 from MPOS/reward-average 2014-02-07 13:48:07 +01:00
statscache.class.php blah blah 2014-01-28 07:26:08 -05:00
strict.class.php ripped out all the memcache session stuff, not worth it with the side effects of caching things 2014-01-30 18:41:56 -05:00
template.class.php blah blah 2014-01-28 07:26:08 -05:00
token.class.php blah blah 2014-01-28 07:26:08 -05:00
tokentype.class.php blah blah 2014-01-28 07:26:08 -05:00
tools.class.php [FIX] API Timeout added 2014-01-31 16:27:03 +01:00
transaction.class.php [FIX] Manual PPS Payouts 2014-02-06 08:53:18 +01:00
user.class.php [IMPROVED] Logging format 2014-02-07 10:14:56 +01:00
worker.class.php blah blah 2014-01-28 07:26:08 -05:00