Commit Graph

388 Commits

Author SHA1 Message Date
Neozonz
5a5bc255cc [Enhance] Improved logging
[Fix] Added error messaging to all
2014-01-24 10:21:01 -08:00
Sebastian Grewe
c6e2e062de [FIX] Skip prop payouts with 0 valid shares
* [FIXED] Do not create 0 amount payout transactions for users w/o
  valid shares

Fixes #1569 once merged.
2014-01-24 16:19:10 +01:00
Sebastian Grewe
2891a07637 [FIX] Bail payouts on failed sendtoaddress calls
* [WORKAROUND] Helps for coins that run a bad RPC implementation
* Addresses #1406 and wil at least stop double payouts
2014-01-24 12:15:23 +01:00
Sebastian Grewe
a1efdcf58a Merge pull request #1563 from daygle/patch-8
Update run-payout.sh
2014-01-23 23:52:11 -08:00
Glen
be234ad1b1 Update run-payout.sh
Liquid payout was being processed before block(s) found/payout causing liquid balances to go in to the minus as the liquid payout job would see funds in wallet that were unassigned.

This change moves the liquid_payout.php cron as the last step to be performed.
2014-01-24 13:09:17 +11:00
Glen
d9b37b4adb Update run-crons.sh
Liquid payout was being processed before block(s) found/payout causing liquid balances to go in to the minus as the liquid payout job would see funds in wallet that were unassigned.

This change moves the liquid_payout.php cron as the last step to be performed.
2014-01-24 13:08:03 +11:00
cut
5705774dfb Lint on cronjobs/pplns_payout.php #1554 2014-01-23 12:11:18 -06:00
rog1121
9a23148adb Update pplns_payout.php 2014-01-22 09:24:22 -07:00
rog1121
21888a8153 Update pplns_payout.php 2014-01-22 09:05:21 -07:00
Sebastian Grewe
fbea334121 [REMOVED] Unused stats update 2014-01-19 17:22:40 +01:00
Sebastian Grewe
cf49db4535 [IMPROVED] Cronbased global Hash-/Sharerate cache
* [ADDED] New statistic method to fetch all user mining stats
* [ADDED] New global cache to getUserHash/Sharerate calls
* [ADDED] New memcache key for new global cache

Addresses #1471 and may fix it already if no other changes are required.
2014-01-19 17:05:27 +01:00
Sebastian Grewe
a572d0cea0 Merge pull request #1351 from TheSerapher/issue-1345
Issue 1345
2014-01-16 23:46:40 -08:00
Sebastian Grewe
1dfbeea5f7 Merge pull request #1420 from TheSerapher/issue-1343
[IMPROVED] jsonRPC Error Handling with CURL
2014-01-16 06:15:42 -08:00
obigal
75729c6592 pplns payouts speed improvements / reworked insert method 2014-01-16 14:42:05 +01:00
nicoschtein
618c50c49f Deduct fee to payout amount value on email notification 2014-01-15 15:57:22 -02:00
Sebastian Grewe
f2f539ef53 [IMPROVED] Payout logging and indent 2014-01-15 16:12:00 +01:00
nicoschtein
0d285f044b Changed txfee to txfee_auto and txfee_manual in payout.php 2014-01-14 19:12:00 -02:00
Sebastian Grewe
95aad7417d [IMPROVED] Version detection in cronjobs 2014-01-12 09:28:21 +01:00
Sebastian Grewe
6aefea6b6f [FIX] Better error handling 2014-01-10 16:41:05 +01:00
Sebastian Grewe
187721f48c [FIX] Catch new jsonRPC exception 2014-01-10 16:34:37 +01:00
Sebastian Grewe
ead36cfd07 [FIX] End cronjob too 2014-01-10 16:34:37 +01:00
Sebastian Grewe
c29bda4e5d [FIX] Config option detection 2014-01-10 16:34:37 +01:00
Sebastian Grewe
07b90dbc58 [FIX] Config option detection 2014-01-10 16:34:36 +01:00
Sebastian Grewe
90a8404bab [CLEANUP] Code cleanup, error checking
Fixes #1315 once merged.
2014-01-10 16:34:36 +01:00
myrinx
75f35d80b1 Update liquid_payout.php
formatting
2014-01-10 16:34:36 +01:00
myrinx
9f69a0b9f7 Update run-payout.sh
added liquid_payout.php
2014-01-10 16:34:36 +01:00
myrinx
26d138a637 Update run-crons.sh
added liquid_payout.php
2014-01-10 16:34:35 +01:00
myrinx
640c6a4426 Create liquid_payout.php
Add support for a cronjob to send liquid assets.

Maintains a set reserve and sends only when a wallet address is set; and the threshold is set in the config.
2014-01-10 16:34:35 +01:00
Sebastian Grewe
627b7a17ff [FIX] Catch jsonRPC exceptions
Fixes #1339 once merged.
2014-01-10 16:20:24 +01:00
Sebastian Grewe
19094e73e3 Merge pull request #1271 from drainx/next
JSON-RPC
2014-01-09 22:11:35 -08:00
Sebastian Grewe
3645a23333 Merge pull request #1312 from TheSerapher/issue-1061-deleteuser
[UPDATE] Allow deletion of accounts
2014-01-09 01:33:12 -08:00
Sebastian Grewe
3a0d0f016b [ADDED] Payout fail hint: Wallet covers balance? 2014-01-07 09:43:10 +01:00
drainx
5a1c693fa6 Move from XML-RPC to JSON-RPC. 2014-01-06 17:34:54 -06:00
Sebastian Grewe
418728071b [UPDATE] Allow deletion of accounts
Updated backend and theme to be able to deal with deleted accounts

    * Backends will skip any users that have no account_id associated with
      their shares
    * Updated round stats theme to show users as unknown if none can be found

    This will not fully address the issue of account deletion but at least
    wont break the system anymore.
2014-01-06 12:26:57 +01:00
Sebastian Grewe
9006bf1350 [UPDATE] Check for upgrade later 2014-01-06 09:58:29 +01:00
Sebastian Grewe
2568ced4d4 [INITIAL] Working version checks
* Check DB structure version, config file version and MPOS core version
* Added new Admin Dashboard to show this core information
* Cronjobs will be disabled if SQL files are not imported
 * SQL files must re-set the db_upgrade_required setting
* Cronjobs will disabled if config files are not updated
 * Simple config file update and version string update will fix this
* Added MPOS status overview
 * Cronjobs and Wallet information for now, others may be added later
* Added new navigation link for Admin Panel Dashboard
* Added new version file
 * Will require updates whenever DB or configs are updated
* Update SQL file that adds the DB_VERSION setting

This will address #1242 and already includes a huge chunk of changes
required to make this work.
2014-01-05 11:19:09 +01:00
Sebastian Grewe
5c5db8dc93 Merge pull request #1191 from TheSerapher/issue-1181
Issue 1181
2014-01-02 02:08:19 -08:00
Sebastian Grewe
dc81ad3123 Merge pull request #1166 from TheSerapher/issue-1159
Issue 1159
2014-01-01 02:11:02 -08:00
Sebastian Grewe
bf86cc6c25 [FIX] Do not mark cron disabled, just notify 2014-01-01 08:56:46 +01:00
Sebastian Grewe
0b5e6ae250 [FIX] Removed debug test 2013-12-31 22:38:52 +01:00
Sebastian Grewe
731985b30f [IMPROVED] Token expiration timers
* Added new SQL file to update tokentypes table
* Added new function to base class
* Renamed function in base class used in shares class
* Added new error code
* Added new cronjob to delete expired tokens
* Added new cronjob to run-cron scripts and monitoring page
* Added new function to tokentype class
* Added new function to token class

Will address #1181 once merged.
2013-12-31 22:31:47 +01:00
Sebastian Grewe
de302a03dc [IMPROVED] data gathering for Auto Payout
* Using improved SQL query created by @feeleep75
* Adjusted the query to further cut down the data returned

Fixes #1159 once merged.
2013-12-30 11:57:29 +01:00
Sebastian Grewe
96d096f669 [MERGE] Fix merge conflict 2013-12-30 08:19:13 +01:00
Sebastian Grewe
86f8dab65b [FIX] Don't send notification on disabled notifications
Fixes #1108
2013-12-26 16:12:28 +01:00
Sebastian Grewe
506449fb6d Merge pull request #1107 from vassilevsky/conenct
Fix a typo
2013-12-25 06:36:46 -08:00
Ilya Vassilevsky
1faf82fac7 Fix a typo 2013-12-25 16:44:52 +04:00
Ryan Loomba
6fb82ae999 fix typo in error message 2013-12-23 13:27:29 -08:00
Sebastian Grewe
88021eb9a4 [FIX] Fix cleanup with 0 matching shares 2013-12-22 09:08:25 +01:00
Sebastian Grewe
0d6ee6d821 [IMPROVED] Auto/Manual Payout Disabled
This will re-add the ability to disable auto or manual payouts. Option
to disable the entire cronjob is left intact.

Fixes #1034 when merged.
2013-12-19 15:17:29 +01:00
Sebastian Grewe
0ecb921035 [IMPROVED] Debug logging for purgeArchive calls 2013-12-19 09:36:16 +01:00
Sebastian Grewe
cba4e5f1a4 Merge pull request #1003 from TheSerapher/issue-986
[FIX] Admin User Panel for PPS Payouts
2013-12-18 22:40:22 -08:00
Sebastian Grewe
dd80fdcc1a Merge pull request #1020 from TheSerapher/issue-997
Issue 997
2013-12-18 00:27:42 -08:00
Sebastian Grewe
3715f30f7b [FIX] Disable verbose mode, use cmdline switch instead 2013-12-17 11:38:43 +01:00
Sebastian Grewe
6cc367ad50 [FIX] Admin User Panel for PPS Payouts
This will fix #986 once merged.
2013-12-17 10:56:37 +01:00
Sebastian Grewe
17345f953e [FIX] Missing x bit 2013-12-17 09:16:56 +01:00
Sebastian Grewe
bb04f890ae [CHANGE] Split statistics from Maintenance cron 2013-12-17 09:14:39 +01:00
Frederick Behrends
2517f22b2f [FIX] changed to new payout-cronjob name 2013-12-16 20:01:49 +01:00
Frederick Behrends
788929ae79 fixed payout cronjob 2013-12-16 20:01:21 +01:00
Frederick Behrends
2c4cb4b743 added 2 new scripts to split the cronjob 2013-12-16 20:01:18 +01:00
Sebastian Grewe
5c8a4ecb73 [FIX] Added more verbose output on failing crons for log 2013-12-16 16:57:27 +01:00
Sebastian Grewe
185125fd7b [FIX] Added renamed cronjob 2013-12-15 10:56:47 +01:00
Sebastian Grewe
58eb7b6794 Merge pull request #968 from TheSerapher/issue-967
[CHANGED] Merge payout crons
2013-12-15 01:40:43 -08:00
huri
96b700ab36 Fixed assignment bug in findblock cron 2013-12-12 23:55:49 +01:00
Sebastian Grewe
afb5fc6c0d [CHANGED] Merge payout crons
* Merge manual and auto-payout into single cronjob
* Update template/code to reflect single payout cron
* Update monitoring page
* Update disable payouts option in admin panel settings
* Update account payout page to use new option

This will fix #967 once merged.
2013-12-12 11:45:33 +01:00
Sebastian Grewe
f0b01554eb [FIX] Payout failure due to remaining balances
Fixes #943 once merged.
2013-12-10 16:44:37 +01:00
Sebastian Grewe
8a3e38b882 [FIX] PHP Notice warning 2013-12-09 16:22:01 +01:00
Sebastian Grewe
23f72fb576 [UPDATE] Do not send mails on disabled payouts
Fixes #928 once merged.
2013-12-09 09:15:33 +01:00
Sebastian Grewe
f4beb36708 Merge pull request #919 from TheSerapher/issue-904
[IMPROVED] Added balance checks post payouts
2013-12-08 22:24:08 -08:00
Sebastian Grewe
21af8dd83f [CHANGED] Do not send mail on uptime robot update
Do not send a mail notification in case the uptime robot updates are
failing.

Fixes #897 once merged.
2013-12-07 14:17:42 +01:00
Sebastian Grewe
0740eca0ab [IMPROVED] Added balance checks post payouts
Fixes #904 once merged.
2013-12-05 18:12:40 +01:00
Sebastian Grewe
232dd76af5 [ADDED] TXID on debit transactions 2013-11-28 10:53:24 +01:00
Sebastian Grewe
385387f393 [IMPROVE] More verbose logs on addBlock errors 2013-11-25 09:15:31 +01:00
Sebastian Grewe
0c1d1010f8 [FIX] Re-added executable bit on findblock 2013-11-20 09:29:36 +01:00
root
a1493032d2 [FIX] undefined index: USERDATA 2013-11-18 13:20:23 +01:00
root
4236b8ac7c [UPDATE] back to default variables 2013-11-18 12:43:17 +01:00
root
510c076452 [FEATURE] blockfinder statistics 2013-11-18 12:43:17 +01:00
Sebastian Grewe
6899ac5b6c [FIX] Proper Uptime Robot API detection 2013-11-18 10:37:11 +01:00
Sebastian Grewe
21acec83d0 [FIX] Proper error on missing shares 2013-11-17 16:36:30 +01:00
Sebastian Grewe
6869862579 [UPDATE] Less verbose notification cron 2013-11-12 09:34:47 +01:00
Sebastian Grewe
5f0e8638dd [UPDATE] E0003 SQL logging 2013-11-11 17:36:01 +01:00
Sebastian Grewe
d155804a06 [FIX] Skip payouts until block has a share_id 2013-11-11 12:51:06 +01:00
Sebastian Grewe
ef120d9504 [FIX] Skip uptime robot with defaults set
This will skip any updates if we detect the default string in our
settings table. Otherwise the script will return an error and disable
itself.

Fixes #839 once merged
2013-11-11 10:01:52 +01:00
Sebastian Grewe
91d43a1b7f Merge pull request #835 from TheSerapher/issue-715-block-id-fix
Issue 715 block id fix
2013-11-10 08:15:39 -08:00
Sebastian Grewe
3edd7671a4 [FIX] Removed debug exit 2013-11-10 17:15:03 +01:00
Sebastian Grewe
98259e786c [IMPROVED] More SQL logging on failed DB events in crons 2013-11-07 15:58:12 +01:00
Sebastian Grewe
a8b99484cc [FIX] Do not use Block Height to fetch prev block
This should fix issues with orhpan blocks followed by real ones with the
same height.

Fixes #715, attempt four!
2013-11-05 16:37:53 +01:00
Sebastian Grewe
f67e63b6fc [REFACTOR] Refactored classes for error handling
* [ADDED] More error codes
* [MODIFIED] Class updates to use Base Class all the time
* [MODIFIED] Cronjobs have been slightly adjusted
* [ADDED] More base class features
2013-11-05 14:34:31 +01:00
Sebastian Grewe
84bad3508e [FIX] Double error message in log 2013-11-05 07:28:07 +01:00
Sebastian Grewe
172444d3d8 [IMPROVED] Added logging failed SQL queries to payouts 2013-11-05 07:28:07 +01:00
Sebastian Grewe
e2623eb4cc [FIX] Disable mail notifications on disabled crons 2013-11-05 07:28:07 +01:00
Sebastian Grewe
ae45939fea [IMPROVED] Re-factored monitoring criticals/errors
* [ADDED] new monitoring method : endCronjob
* [IMPROVED] Use newly added error codes
* [ADDED] mail notifications, enabled by default
* [ADDED] cron disable on fatal errors with exit code != 0
* [ADDED] Command line swtich: -f = Force running crons even if disabled
* [ADDED] Disabled status in monitoring site

This will improve error handling in our cronjobs. Fatal errors now
require manual intervention by explicityly running crons with the force
option (`-f`). Until they are forced to run, crons will stay disabled.

Fixes #773 once merged
2013-11-05 07:28:07 +01:00
nicoschtein
42dc4594b5 [FIX] Double Payout Detection Fixes Orphan Block Issues
Fixes #715 when merged, for the third time..
2013-11-04 16:20:27 -02:00
Sebastian Grewe
ab2b2d6062 Merge pull request #812 from TheSerapher/uptimerobot
Uptimerobot
2013-11-02 02:58:03 -07:00
Sebastian Grewe
ab4e5df2bc Merge pull request #810 from TheSerapher/issue-715-skip-orphans
Issue 715 skip orphans
2013-11-02 01:46:42 -07:00
nicoschtein
9c33c8314a Changed email address to new "system_error_email" setting on Prop Cron 2013-10-30 16:20:45 -02:00
nicoschtein
3a85792325 Changed email address to new "system_error_email" setting on PPLNS Cron 2013-10-30 16:16:54 -02:00
Sebastian Grewe
b98258bf62 [FIX] Fix payouts on orphans 2013-10-30 14:45:40 +01:00
Sebastian Grewe
5cbb469b56 [FIX] Default to 0 if no prev upstream share available 2013-10-30 14:11:08 +01:00
Sebastian Grewe
c9435cf180 [FIX] Skip orphans for double payout detection
Should fix the case where orphan blocks are followed by valid blocks
with the same or lower height due to changing the main chain.

Fixes $715, specifically the orphan block issue.
2013-10-30 07:54:25 +01:00
Sebastian Grewe
88a2a29b3b [UPDATE] Adding missing files 2013-10-29 09:23:52 +01:00
Sebastian Grewe
c6dd4086ff Merge pull request #764 from TheSerapher/payout-fixes
Payout fixes
2013-10-28 05:20:19 -07:00
Sebastian Grewe
a841880fe7 Merge pull request #760 from TheSerapher/issue-759
Issue 759
2013-10-27 07:02:02 -07:00
Sebastian Grewe
a2472284a8 [FIX] Proper fetch Archive Shares
Is now in-line with getMininumShareId.
2013-10-27 03:28:41 +01:00
Sebastian Grewe
7a79c66ba8 Merge branch 'next' into payout-fixes 2013-10-27 02:44:09 +01:00
Sebastian Grewe
d23358a2f7 [UPDATE] Reduce notification info logging 2013-10-27 02:54:21 +02:00
Sebastian Grewe
a6f9c25b5b [UPDATE] Proper implementation of target bits
* [ADDED] New Config Option: Algorithm
 * scrypt and sha256d supported right now
 * might add SHA coin support across MPOS
 * Compatible with previous implementation
* [REMOVED] config option: pps_target
 * Replaced by config option: algorithm
 * Please update your config, defaults to srypt now!
* [ADDED] Unpaid Shares in Dashboard
* [MODIFIED] User estshares from DB query instead template math
2013-10-26 14:10:34 +02:00
Sebastian Grewe
0838bc7783 [FIX] Fixing PPS calculations
* [FIX] PPS estimations
* [FIX] PPS Value, PPS Payouts being off (too low)

Tested on testnet, estimates worked perfectly and payouts worked well.
2013-10-26 02:38:24 +02:00
Sebastian Grewe
ac5c0fce95 [IMPROVED] Out of Order Share detection
* [ADDED] Allow findblocks to detect and fix out of order shares
* [IMPROVED] Share class extends Base class for common functions
* [IMPROVED] Added more debugging and logging output to cronjob
* [ADDED] Added various new methods to blocks, share, base classes

For an overview of errors thrown in crons, please check:

https://github.com/TheSerapher/php-mpos/wiki/Error-Codes

Fixes #759 once merged.
2013-10-24 12:04:00 +02:00
obigal
7e49e7c254 pplns-stats, block-stats paging, dynamic and reverse payout 2013-10-22 09:07:31 -04:00
nicoschtein
7f6e7738d8 [FIX] Incorrectly reporting # of unconfirmed coins
Fixes #720 and fixes #721.
This will work in all three cases:

1) $config['confirmations'] > $config['network_confirmations'])
2) $config['confirmations'] < $config['network_confirmations'])
3) $config['confirmations'] = $config['network_confirmations'])
2013-10-14 14:36:14 -03:00
andy
8311dca422 [FIX] Incorrectly reporting # of unconfirmed coins 2013-10-13 07:48:06 -07:00
Sebastian Grewe
b1001950cf [FIX] Removed debug exit from prop payout 2013-10-12 19:57:18 +02:00
Sebastian Grewe
1c1b311385 [FIX] Set block internally accounted for earlier 2013-10-12 19:54:31 +02:00
Sebastian Grewe
15d7b6d1fa [IMPROVED] Detect potential dual payout situations 2013-10-12 19:28:56 +02:00
Sebastian Grewe
1dfb7e9702 Merge pull request #673 from TheSerapher/issue-444-theserapher
Issue 444 theserapher
2013-10-04 02:27:28 -07:00
obigal
66296a8f36 pplns_payout block average fix when multiple blocks found during a payout run 2013-10-02 16:42:03 -04:00
Sebastian Grewe
64205dd099 [MERGE] Fix merge conflict with NEXT 2013-09-30 09:56:49 +02:00
Sebastian Grewe
db89768cd5 Merge pull request #648 from TheSerapher/issue-145
Issue 145
2013-09-30 00:53:45 -07:00
Sebastian Grewe
43fa4358c2 [IMPROVED] Allow running crons with full path
Crons can now be called from any directory and will be executed inside
their working directory. Allows for more flexibility, e.g. taking out
the statistics cron and running it directly.
2013-09-30 09:46:34 +02:00
Sebastian Grewe
1387bbdf44 [MERGE] Merge conflict NEXT 2013-09-18 16:34:52 +02:00
Sebastian Grewe
4954f14923 Merge branch 'next' into issue-444-theserapher 2013-09-18 11:03:07 +02:00
Sebastian Grewe
07f0361050 [IMPROVEMENT] Support incremental contrib shares 2013-09-18 10:48:02 +02:00
Sebastian Grewe
a0fa71b264 [IMPROVEMENT] Adding incremental round/user shares
This will address #510. It needs thorough testing and is a WiP but
is a start to improve cron runtime and DB loads.
2013-09-18 09:45:52 +02:00
Sebastian Grewe
d8c8a89f7a fixing PHP warning in crons 2013-09-17 14:27:58 +02:00
Sebastian Grewe
6eec747be6 fixing PPLNS payouts one last time 2013-08-22 16:16:04 +02:00
Sebastian Grewe
db754c146e Revert "Revert "adjusting pplns target to baseline shares""
Reverting the revert .... :-/

This reverts commit 2d27132725.
2013-08-22 15:20:46 +02:00
Sebastian Grewe
2d27132725 Revert "adjusting pplns target to baseline shares"
* Shares are already baselined when calculating rounds

This reverts commit c9a8f8dc65.
2013-08-22 14:51:30 +02:00
Sebastian Grewe
c9a8f8dc65 adjusting pplns target to baseline shares 2013-08-22 14:39:46 +02:00
Sebastian Grewe
2aad605cf2 minor cleanup 2013-08-22 11:27:09 +02:00
Sebastian Grewe
526701d2e1 Merging with origin/next to get branch updated 2013-08-20 15:55:05 +02:00
Sebastian Grewe
408ebf3b0b Merge branch 'next' into issue-569
Conflicts:
	cronjobs/findblock.php
2013-08-19 09:37:54 +02:00
Sebastian Grewe
f0921264f8 Fixing proof-of-stake detection
Fixes #569
2013-08-19 09:36:25 +02:00
Sebastian Grewe
e7b8cb8d4a Remove number_format for transaction generation
* Fixes: Incorrect payouts due to number formatting
* Moved number_format to output only

Fixes #611
2013-08-19 08:48:27 +02:00
Sebastian Grewe
020d1ef01b Fixing notification reset for active workers
Fixes #600
2013-08-14 11:48:41 +02:00
Sebastian Grewe
f3a0cf0417 Fixing PPLNS payouts when exceeding target
Round shares are taken to only match PPLNS target. Round target was not
re-adjusted to reflect the new, lower amount of round shares.

* Fix: Properly adjust round target shares when exceeding PPLNS target

Fixes #588 once merged
2013-08-12 09:35:45 +02:00
Sebastian Grewe
68f2d72cac use regexp detection 2013-08-12 08:48:30 +02:00
Sebastian Grewe
596b2b3a5d Merge pull request #574 from TheSerapher/issue-568
Deduct TXFee from transferred balance
2013-08-07 21:45:30 -07:00
Sebastian Grewe
d5651764cd Update findblock.php
* fixed typo
2013-08-08 06:42:42 +02:00
Sebastian Grewe
8809e3df53 Do not use number_format for inserting to DB
This will fix an issue with very large payouts not being inserted to the
DB properly. Moved number formatting to displaying output as it should
be.
2013-08-07 09:44:11 +02:00
obigal
53da013fab Update pps_payout.php 2013-08-07 09:36:26 +02:00
obigal
ef234fe80b Vardiff/pushpool and pps payout support 2013-08-07 09:29:48 +02:00
obigal
174bfdc0cf Update pps_payout.php 2013-08-07 09:29:48 +02:00
obigal
128050f508 Update pps_payout.php 2013-08-07 09:29:48 +02:00
Sebastian Grewe
769a85cbc0 Deduct TXFee from transferred balance
This should fix #568 as proposed by @nicoschtein
2013-08-07 08:54:38 +02:00
Sebastian Grewe
6dfce75df8 Skip proof-of-stake blocks in findblock cron
* Do not add proof-of-stake blocks to database

Fixes #569
2013-08-07 08:47:22 +02:00
Sebastian Grewe
95825224a1 Adding archiving flag for transactions
* Added new column to transactions table (`007_transactions.sql`)
* Added setArchived method to mark old transactions as archived
* Honor archived flag in getBalance and getLockedBalance

This will further address and fix #536 once merged.
2013-08-01 12:16:59 +02:00
nicoschtein
a84c91f886 Fix PIDFILE folder check 2013-08-01 04:04:45 -03:00
Nicolas Schteinschraber
038ec39e55 Added BASEPATH and SUBFOLDER configs for PIDFILE
Checks if the path exists, if it does not, it is created, if there is
an error a message is printed with the problematic path.
2013-08-01 02:55:33 -03:00
nicoschtein
fee9d82192 Added curly brackets to arg vars and removed extra empty arg catcher. 2013-08-01 00:11:21 -03:00
nicoschtein
87315238da Properly overwrite PIDPREFIX via command line argument 2013-07-31 06:35:04 -03:00