From f4f5cbee0af4d47765102eb6d3ad2b863b81e659 Mon Sep 17 00:00:00 2001 From: Guy Davis Date: Tue, 25 Oct 2022 20:36:10 -0600 Subject: [PATCH 01/16] Misc fixes from testing. --- api/gunicorn.conf.py | 2 +- api/schedules/plots_check.py | 14 +++++++------- common/config/globals.py | 2 ++ scripts/forks/chia_launch.sh | 2 +- web/templates/plotting/jobs.html | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/api/gunicorn.conf.py b/api/gunicorn.conf.py index a4c7d3ad..09ea0569 100644 --- a/api/gunicorn.conf.py +++ b/api/gunicorn.conf.py @@ -92,7 +92,7 @@ def on_starting(server): scheduler.add_job(func=stats_balances.collect, name="stats_balances", trigger='cron', minute=0) # Hourly # Testing only - #scheduler.add_job(func=status_plotnfts.update, name="status_plotnfts", trigger='interval', seconds=10) # Test immediately + #scheduler.add_job(func=plots_check.execute, name="plots_check", trigger='interval', seconds=60) # Test immediately #scheduler.add_job(func=stats_effort.collect, name="stats_effort", trigger='interval', seconds=10) # Test immediately #scheduler.add_job(func=stats_balances.collect, name="stats_balances", trigger='interval', seconds=10) # Test immediately #scheduler.add_job(func=websvcs.get_chain_statuses, name="get_chain_statuses", trigger='interval', seconds=10) # Test immediately diff --git a/api/schedules/plots_check.py b/api/schedules/plots_check.py index 4c74039b..baaee11e 100644 --- a/api/schedules/plots_check.py +++ b/api/schedules/plots_check.py @@ -112,7 +112,7 @@ def request_analyze(plot_file, workers): return [None, None, None] def set_check_status(workers, status, plot): - #app.logger.info("Checking for plot check of {0}".format(plot.plot_id)) + app.logger.debug("Checking for plot check of {0}".format(plot.plot_id)) check_log = CHECK_LOGS + '/' + plot.plot_id[:8] + '.log' check_status = None requested_status = False @@ -155,20 +155,20 @@ def set_check_status(workers, status, plot): def request_check(plot, workers): # Don't know which harvester might have the plot result so try them in-turn for harvester in workers: - #app.logger.info("{0}:{1} - {2} - {3}".format(harvester.hostname, harvester.port, harvester.blockchain, harvester.mode)) + app.logger.debug("{0}:{1} - {2} - {3}".format(harvester.hostname, harvester.port, harvester.blockchain, harvester.mode)) if harvester.mode == 'fullnode' or 'harvester' in harvester.mode: if harvester.latest_ping_result != "Responding": - #app.logger.info("Skipping check call to {0} as last ping was: {1}".format( \ - # harvester.hostname, harvester.latest_ping_result)) + app.logger.debug("Skipping check call to {0} as last ping was: {1}".format( \ + harvester.hostname, harvester.latest_ping_result)) continue if harvester.hostname != plot.hostname or harvester.blockchain != plot.blockchain: - #app.logger.info("Skipping check call to {0} ({1}) for plot on {2} ({3})".format( \ - # harvester.hostname, harvester.blockchain, plot.hostname, plot.blockchain)) + app.logger.debug("Skipping check call to {0} ({1}) for plot on {2} ({3})".format( \ + harvester.hostname, harvester.blockchain, plot.hostname, plot.blockchain)) continue try: app.logger.debug("Trying {0}:{1} for plot check....".format(harvester.hostname, harvester.port)) payload = {"service":"farming", "action":"check", "plot_file": plot.dir + '/' + plot.file } - response = utils.send_worker_post(harvester, "/analysis/", payload, debug=False) + response = utils.send_worker_post(harvester, "/analysis/", payload, debug=True) if response.status_code == 200: return [harvester.hostname, harvester.displayname, response.content.decode('utf-8')] elif response.status_code == 404: diff --git a/common/config/globals.py b/common/config/globals.py index 80227d9c..3fb39e41 100644 --- a/common/config/globals.py +++ b/common/config/globals.py @@ -243,6 +243,8 @@ def load_blockchain_version(blockchain): # Chia version with .dev is actually one # to high, never fixed by Chia team... # See: https://github.com/Chia-Network/chia-blockchain/issues/5655 sem_ver = last_blockchain_version.split('.') + if 'rc' in sem_ver[2]: # Strip out 'rcX' if found. + sem_ver[2] = sem_ver[2][:sem_ver[2].index('rc')] last_blockchain_version = sem_ver[0] + '.' + \ sem_ver[1] + '.' + str(int(sem_ver[2])-1) elif '.dev' in last_blockchain_version: diff --git a/scripts/forks/chia_launch.sh b/scripts/forks/chia_launch.sh index 567cbfe4..0fbf4516 100644 --- a/scripts/forks/chia_launch.sh +++ b/scripts/forks/chia_launch.sh @@ -52,7 +52,7 @@ chia init >> /root/.chia/mainnet/log/init.log 2>&1 echo 'Configuring Chia...' if [ ! -f /root/.chia/mainnet/config/config.yaml ]; then - sleep 10 + sleep 60 # Give Chia long enough to initialize and create a config file... fi if [ -f /root/.chia/mainnet/config/config.yaml ]; then sed -i 's/log_stdout: true/log_stdout: false/g' /root/.chia/mainnet/config/config.yaml diff --git a/web/templates/plotting/jobs.html b/web/templates/plotting/jobs.html index 749c447a..ce2d36fb 100644 --- a/web/templates/plotting/jobs.html +++ b/web/templates/plotting/jobs.html @@ -366,7 +366,7 @@
{{_('Plotting Speed - k%(k_size)s Plots', k_si } html = "
Destination Directories (optional)
" $("#dst_dirs").html(html); From a37b0f4a7e003573b9118ccd0647d8cd9c27637a Mon Sep 17 00:00:00 2001 From: Guy Davis Date: Wed, 26 Oct 2022 20:34:42 -0600 Subject: [PATCH 02/16] Minor fixes from testing. --- CHANGELOG.md | 4 ++-- api/translations/de_DE/LC_MESSAGES/messages.po | 2 +- api/translations/fr_FR/LC_MESSAGES/messages.po | 2 +- api/translations/it_IT/LC_MESSAGES/messages.po | 2 +- api/translations/nl_NL/LC_MESSAGES/messages.po | 2 +- api/translations/pt_PT/LC_MESSAGES/messages.po | 2 +- api/translations/zh/LC_MESSAGES/messages.po | 2 +- common/config/blockchains.json | 2 +- config/plotman.sample.yaml | 9 +++------ web/actions/stats.py | 2 +- web/templates/plotting/workers.html | 4 ++-- web/translations/de_DE/LC_MESSAGES/messages.po | 8 ++++---- web/translations/fr_FR/LC_MESSAGES/messages.po | 10 +++++----- web/translations/it_IT/LC_MESSAGES/messages.po | 8 ++++---- web/translations/nl_NL/LC_MESSAGES/messages.po | 8 ++++---- web/translations/pt_PT/LC_MESSAGES/messages.po | 8 ++++---- web/translations/zh/LC_MESSAGES/messages.po | 8 ++++---- 17 files changed, 40 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cad97562..2be028a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.8.5] - 2022-10-? +## [0.8.5] - 2022-10-27 - Wallets page - Claim Rewards button offers portable plot reward recovery after one week has elapsed. (EARLY BETA!) - Chart memory usage per container (GiB) as well as total host memory usage (%) for OS and all apps. - Enhanced Forktools to optionally decrease a blockchain's full_node process count, which greatly limits memory usage. - Improve Plotting page to display configured tmp, dst, and archiving directories before starting to plot. Support `site_path_filter` for archive folders under `site_root`. - - Fixes: Enhance 'NFT Reward Recovery' tool to support v2 databases. Fix for invalid Chiadog harvester alerts. Fix for bladebit diskplot mode (NOTE: ramplot mode under development again by original author.) + - Fixes: Enhance 'NFT Reward Recovery' tool to support v2 databases. Fix for invalid Chiadog harvester alerts. Fix for bladebit diskplot mode (NOTE: ramplot mode coming soon). - Update: [Chia](https://github.com/Chia-Network/chia-blockchain/releases/tag/1.6.1) to v1.6.1, [Chinilla](https://github.com/Chinilla/chinilla-blockchain/releases/tag/1.3.0 to v1.3.0, [Littlelambocoin](https://github.com/BTCgreen-Network/littlelambocoin-blockchain/releases/tag/1.6.1) to v1.6.1, [Maize](https://github.com/Maize-Network/maize-blockchain/releases/tag/1.6.0) to v1.6.0, [MMX](https://github.com/madMAx43v3r/mmx-node) to `testnet8`. ## [0.8.4] - 2022-09-21 diff --git a/api/translations/de_DE/LC_MESSAGES/messages.po b/api/translations/de_DE/LC_MESSAGES/messages.po index a47bcec6..c9caab08 100755 --- a/api/translations/de_DE/LC_MESSAGES/messages.po +++ b/api/translations/de_DE/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Machinaris VERSION\n" "Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris" "/issuesCreation-Date: 2022-02-16 15:00-0700\n" -"POT-Creation-Date: 2022-10-22 06:07-0600\n" +"POT-Creation-Date: 2022-10-26 09:06-0600\n" "PO-Revision-Date: 2022-02-15 14:29-0700\n" "Last-Translator: ApfelBirneKreis\n" "Language: de\n" diff --git a/api/translations/fr_FR/LC_MESSAGES/messages.po b/api/translations/fr_FR/LC_MESSAGES/messages.po index 60939550..758fa1b8 100755 --- a/api/translations/fr_FR/LC_MESSAGES/messages.po +++ b/api/translations/fr_FR/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Machinaris VERSION\n" "Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris" "/issuesCreation-Date: 2022-02-16 15:00-0700\n" -"POT-Creation-Date: 2022-10-22 06:07-0600\n" +"POT-Creation-Date: 2022-10-26 09:06-0600\n" "PO-Revision-Date: 2022-02-15 14:29-0700\n" "Last-Translator: Guy Davis\n" "Language: fr\n" diff --git a/api/translations/it_IT/LC_MESSAGES/messages.po b/api/translations/it_IT/LC_MESSAGES/messages.po index 16076b6f..6ea8b68b 100755 --- a/api/translations/it_IT/LC_MESSAGES/messages.po +++ b/api/translations/it_IT/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Machinaris VERSION\n" "Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris" "/issuesCreation-Date: 2022-02-16 15:00-0700\n" -"POT-Creation-Date: 2022-10-22 06:07-0600\n" +"POT-Creation-Date: 2022-10-26 09:06-0600\n" "PO-Revision-Date: 2022-02-15 14:29-0700\n" "Last-Translator: Fabrizio Cacicia\n" "Language: it\n" diff --git a/api/translations/nl_NL/LC_MESSAGES/messages.po b/api/translations/nl_NL/LC_MESSAGES/messages.po index 45975577..eb1f450f 100755 --- a/api/translations/nl_NL/LC_MESSAGES/messages.po +++ b/api/translations/nl_NL/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Machinaris VERSION\n" "Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris/issuesPOT-" "Creation-Date: 2022-03-13 10:30-0600\n" -"POT-Creation-Date: 2022-10-22 06:07-0600\n" +"POT-Creation-Date: 2022-10-26 09:06-0600\n" "PO-Revision-Date: 2022-03-13 10:29-0600\n" "Last-Translator: Bernie Deprez\n" "Language: nl_NL\n" diff --git a/api/translations/pt_PT/LC_MESSAGES/messages.po b/api/translations/pt_PT/LC_MESSAGES/messages.po index cee0d274..8915499c 100755 --- a/api/translations/pt_PT/LC_MESSAGES/messages.po +++ b/api/translations/pt_PT/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Machinaris VERSION\n" "Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris" "/issuesCreation-Date: 2022-02-16 15:00-0700\n" -"POT-Creation-Date: 2022-10-22 06:07-0600\n" +"POT-Creation-Date: 2022-10-26 09:06-0600\n" "PO-Revision-Date: 2022-02-13 13:45-0700\n" "Last-Translator: Antonio Casqueiro\n" "Language: pt\n" diff --git a/api/translations/zh/LC_MESSAGES/messages.po b/api/translations/zh/LC_MESSAGES/messages.po index 7177c0fa..925c2fd0 100755 --- a/api/translations/zh/LC_MESSAGES/messages.po +++ b/api/translations/zh/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Machinaris VERSION\n" "Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris" "/issuesCreation-Date: 2022-02-16 15:00-0700\n" -"POT-Creation-Date: 2022-10-22 06:07-0600\n" +"POT-Creation-Date: 2022-10-26 09:06-0600\n" "PO-Revision-Date: 2022-02-15 14:29-0700\n" "Last-Translator: Guy Davis\n" "Language: zh\n" diff --git a/common/config/blockchains.json b/common/config/blockchains.json index af6396fa..0de2c9f7 100644 --- a/common/config/blockchains.json +++ b/common/config/blockchains.json @@ -281,7 +281,7 @@ "farmer_port": 11330, "worker_port": 8940, "mojos_per_coin": 1000000, - "blocks_per_day": 10800, + "blocks_per_day": 8640, "git_url": "https://github.com/madMAx43v3r/mmx-node", "discord_url": "https://discord.gg/pQwkebKnPB", "website_url": "https://github.com/madMAx43v3r/mmx-node" diff --git a/config/plotman.sample.yaml b/config/plotman.sample.yaml index f1815782..65aa2074 100644 --- a/config/plotman.sample.yaml +++ b/config/plotman.sample.yaml @@ -44,13 +44,10 @@ directories: # See: https://github.com/guydavis/machinaris/wiki/Plotman#archiving #archiving: - #target: rsyncd + #target: local_rsync #env: - #site_root: /mnt/disks - #user: root - #host: aragorn - #rsync_port: 12000 - #site: disks + #site_root: / + #site_path_filter: plots # Plotting scheduling parameters scheduling: diff --git a/web/actions/stats.py b/web/actions/stats.py index bd42254e..61cf989b 100644 --- a/web/actions/stats.py +++ b/web/actions/stats.py @@ -326,7 +326,7 @@ def load_plotting_stats(): app.logger.error("Inavlid plot_analyze time found in ip_addr|seconds: {0}".format(p.plot_analyze)) values[converted_date] = 'null' if len(dates) > 0: - summary_by_size[k] = { "dates": dates, "workers": workers.keys(), } + summary_by_size[k] = { "dates": dates, "workers": sorted(workers.keys()), } for wkr in workers.keys(): worker_values = [] for date in dates: diff --git a/web/templates/plotting/workers.html b/web/templates/plotting/workers.html index 594bb4f6..e06763b2 100644 --- a/web/templates/plotting/workers.html +++ b/web/templates/plotting/workers.html @@ -10,7 +10,7 @@