Commit Graph
440 Commits
Author SHA1 Message Date
wjblankeandGitHub f93095d97c Merge pull request #121 from Chia-Network/alpha-1.5
Alpha 1.5

1. You can now provide an index to create_plots using the -i flag to create an arbitrary new plot derived from an existing plot key. Thanks @xorinox.
2. There is a new restart_harvester.sh in scripts/ to easily restart a harvester when you want to add a newly completed plot to the farm without restarting farmer, fullnode, timelord, etc.
3. Harvesters now log errors if they encounter a malformed or corrupted plot file. Again thanks @xorinox.
4. New AJAX based full node UI. To access go to http://127.0.0.1:8555/index.html with any modern web browser on the same machine as the full node.
5. VDF verification code is improved and is now more paranoid.
6. Timelords can now be run as a cluster of VDF client instances around a central Timelord instance.. Instructions are available in the Cluster Timelord section of the repo wiki.
7. If you want to benchmark your CPU as a VDF you can use vdf_bench square_asm 500000 for the assembly optimized test or just /vdf_bench square 500000 for the plain C++ code path. This tool is found in lib/chiavdf/fast_vdf/.
8. Improvements to shutting down services in all of the scripts in scripts/. Another @xorinox HT.
9. Thanks clean @dkacman for clean ups to the proof of space code.
10. Thanks to @davision for some typo fixes.
alpha-1.5
2020-03-18 17:36:05 -07:00
Gene Hoffman 7faa9c7af9 Final flake8 fix 2020-03-17 00:16:30 -07:00
Gene HoffmanandGitHub 5e2926eaac flake8 on PR
More formatting
2020-03-16 23:58:44 -07:00
Gene HoffmanandGitHub aaa583051c Fix flake8 formatting issue 2020-03-16 23:51:09 -07:00
Gene HoffmanandGitHub fb224d9a2b Merge pull request #120 from xorinox/patch-3
Update harvester.py to report corrupt plot files
2020-03-16 22:34:47 -07:00
xorinoxandGitHub ed5a1f0ed6 Update harvester.py
Once in a while I would run into this issue:
Harvester src.harvester         : ERROR    02:43:26.358 Error using prover object. Reinitializing prover object.
Harvester src.server.server     : ERROR    02:43:26.398 Error <class 'RuntimeError'> Caught an unknown exception!, closing connection Connection(('127.0.0.1', 8447), server_port 8447)
Farmer src.server.server        : WARNING  02:43:26.399 Connection error by peer ('127.0.0.1', 43144), closing connection.

Chasing it down it was related to malformed/corrupted plot files. They had an unexpected size. I changed the code so the re-try of calling prover.get_qualities_for_challenge() is also wrapped in a try/except block. The loop for index, quality_str in enumerate(quality_strings) should only be executed when either calls to get_qualities_for_challenge() did not yield an exception. If an exception was caught, the error message should actually print the plot file causing the exception.
2020-03-17 01:30:52 -04:00
Gene HoffmanandGitHub 85f7b81e1a Merge pull request #119 from xorinox/patch-2
Process shutdown fix - Thanks for your submission!
2020-03-16 22:17:52 -07:00
xorinoxandGitHub a13eae2b70 Update common.sh
After terminating the full node (ctrl+c) I found that in some cases one or several python processes still run. After investigating I found the the _kill_servers() method is actually not killing the processes as it didn't specify SIGKILL. By default kill will send SIGTERM which _term() was already doing.
2020-03-17 00:57:23 -04:00
fchirica 694ad4e1f5 Add potential clients before sending stop signal 2020-03-16 22:33:35 +02:00
Gene HoffmanandGitHub 022b6fb30e Merge pull request #115 from Chia-Network/vdf_bench
Vdf benchmark capability
2020-03-11 00:24:34 -07:00
Rostislav 139c860ce8 fast_vdf: Add vdf_bench tool
The tool can be used to benchmark the following:
- "square_asm": form squaring in assembly
- "square": form squaring in C
- "discr": generation of form discriminant from seed
2020-03-10 06:25:42 +00:00
Rostislav f9be513c66 fast_vdf: Do not repeat initialization in CreateDiscriminant 2020-03-10 04:55:13 +00:00
Gene HoffmanandGitHub db4f27cb45 Readme - add argument POST example for RPC 2020-03-09 15:38:30 -07:00
fchirica 91d7d2cd20 Launcher: refactor, stopping, add process logging 2020-03-10 00:05:27 +02:00
Gene Hoffman 0526910a72 Improved harvester restart logic 2020-03-09 14:08:13 -07:00
Gene Hoffman 332eabfb70 Created restart_harvester.sh 2020-03-09 13:43:42 -07:00
Don KackmanandGitHub ed3699f96e static analysis changes (#113)
changes based on the output cppcheck --enable=all --inconclusive --force *.hpp

* marked members const where possible
* marked members noexcept where possible
* marked members static where possible
* changed to constructor initialization lists where possible
2020-03-09 22:23:13 +09:00
Gene HoffmanandGitHub 07951ab7a9 Fix stack overflow in verifier (#112) alpha-1.4.1 2020-03-06 20:05:17 -08:00
Gene HoffmanandGitHub ef06db4a5c Add florin's verifier.h
Patch around current fullnode crash
2020-03-06 12:36:21 -08:00
Florin ChiricaandGitHub 962ec71ed1 Remove whitespaces in empty line 2020-03-05 20:14:15 +02:00
Florin ChiricaandGitHub 47c711f15a Wait for timelord TCP server to spawn. 2020-03-05 19:59:33 +02:00
Florin ChiricaandGitHub 84fcee1867 Fix stopping script 2020-03-05 19:34:29 +02:00
wjblankeandGitHub a6e6e7d649 Js14wjb (#105)
New AJAX web browser based block explorer (similar to ssh UI). Run full node, then:

http://127.0.0.1:8555/index.html
2020-03-01 23:54:00 -08:00
xorinoxandGitHub 31c5201011 Update create_plots.py (#107)
The proposed change allows to call create_plots.py with an optional index, so ranges of plots can be generated, that don't overlap.
2020-03-02 14:27:05 +09:00
Gene HoffmanandGitHub 5fc2f38220 Merge pull request #103 from davision/master
Fix some typos in comments (Thanks @davision!)
2020-02-26 11:51:55 -08:00
davision ed57313275 Fix some typos in comments 2020-02-26 20:00:38 +01:00
Florin ChiricaandGitHub b4d473197b Cluster (#96)
* Initial commit cluster

* Flake8

* mypy

* support IPv6; gather instead of create_task

* flake8
2020-02-25 20:34:56 +02:00
wjblankeandGitHub bdd52e7fd4 Merge pull request #100 from Chia-Network/alpha-1.4
Alpha 1.4

1. Compiling and execution now detect AES-NI, or a lack of it, and fall back to a software AES implementation. This adds support for Raspberry Pi 4, related ARM processors and Celeron processors. 
2. Added install instructions for CentOS/RHEL 8.1. Thanks to @A-Caccese for fixes to Windows WSL instructions.
3. Due to changes to the sqlite database that are not backwards compatible so re-synch will be required. Loading the blockchain only loads headers into memory instead of header blocks (header + proofs), speeds up the startup, and reduces normal operation memory usage by 80%. Memory access is now synchronous to reduce use of locks and speed up block processing.
4. Chia fullnode, farmer and harvester now default to logging to chia.log in the chia-blockchain directory. This is configured in config.yaml and due to config.yaml changes it is recommended to edit the new template config instead of using older config.yaml’s from previous versions.
5. Plotting working directory and final directory can both be specified in config.yaml
6. uvloop is now an optional add on.
7. Plotting now logs a timestamp at each major step. Thanks @dkackman who also fixed some compiler warnings. Additionally harvester/farmer will not try to farm plots that they don’t have the key for.
8. Added support for Python 3.8.
alpha-1.4
2020-02-19 20:38:32 -08:00
Gene HoffmanandGitHub 248cbbfe45 Update CentOS 7.7 - lib dir
Add LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib for CentOS 7.7 install
2020-02-19 15:35:17 -08:00
Gene HoffmanandGitHub 4e3e0dc6d7 Merge pull request #99 from Chia-Network/new-platforms
RHEL/Centos 8.1
2020-02-19 14:58:18 -08:00
Don KackmanandGitHub b0f48c1a25 fix signed-unsigned comparison warning (#98) 2020-02-14 12:59:38 -05:00
Gene HoffmanandGitHub fa64c4afae Merge pull request #97 from A-Caccese/master
Update README.md for WSL alternative clarification - resolve merge conflict.
2020-02-11 12:28:49 -08:00
Gene HoffmanandGitHub 9e87a5088a Merge branch 'alpha-1.4' into master 2020-02-11 12:28:12 -08:00
Antonio CacceseandGitHub 8daa3c1f2e Update README.md
In "Each line that starts with `pip ...` becomes `python -m pip ...`" changed "python -m pip" with "python3.7 -m pip"  (paragraph "Alternate method for Ubuntu 18.04 LTS"). The command "python -m pip" calls the wrong version of python.
2020-02-11 19:01:17 +01:00
Mariano Sorgente 5676e5ca9d Don't allow farming plots with wrong key 2020-02-07 14:55:52 -05:00
wjblankeandGitHub 5e924d2100 Softaes14wjb (#95)
Software AES fallback for runtime (eg Celeron) and compiletime (eg Raspberry Pi via cmake try_run)
2020-02-06 11:27:56 -06:00
Mariano SorgenteandGitHub 5468c25a09 Db headers, locks, pos dirs, and config (#88)
* New database table to store headers
* Loading blockchain only loads headers into memory instead of header blocks (header + proofs), speeds up the startup, and reduces normal operation memory usage by 80%
* Fix deadlock issues with store class
* Make memory store access synchronous, to reduce use of locks, this improves performance of block and unfinished block processing
* Remove locks from reads of DB, only lock for writes
* Cleaner configuration system with argparse
* Log to file by default, configurable to stdout
* Proof of space binary and create_plots scripts allow passing in temp and final directories
2020-02-05 09:42:57 +09:00
Don KackmanandGitHub 528782fe8a Fix warnings (#90)
* fix signedness comparison warninings
* script to setup builds
* replace static_cast with size_type
2020-02-05 09:30:38 +09:00
Gene HoffmanandGitHub b15f50b66f Merge pull request #89 from dkackman/alpha-1.4
Log phase start and end time
2020-02-02 11:59:14 -08:00
Don KackmanandGitHub 88a30d05cf Merge pull request #1 from dkackman/log-event-time
Log phase start/end time
2020-02-02 13:33:54 -06:00
Don Kackman c84c99212e log timestamp at start and end of each phase 2020-02-02 10:33:38 -06:00
Gene HoffmanandGitHub 22991687d8 UI should say "Synced" instead of "Not Syncing"
UI spends most of it's life Synced so change from the negative tense
2020-02-01 23:14:12 -08:00
Gene HoffmanandGitHub 3a7cab800d Specify CentOS 7.7 2020-01-27 23:19:56 -08:00
Gene HoffmanandGitHub ea94c5c2bf Install actually RHEL 8.1 2020-01-27 22:19:47 -08:00
Gene HoffmanandGitHub fb2ccbfb75 Lower boost requirements to 1.66 per RHEL
Boost 1.66 is good enough
2020-01-27 21:12:35 -08:00
Gene HoffmanandGitHub 1e2e5575f3 Missing sqlite req for RHEL 8 2020-01-27 20:49:38 -08:00
Gene HoffmanandGitHub a679aedcf5 Typo in RHEL VDF instructions 2020-01-27 20:46:56 -08:00
Gene HoffmanandGitHub 3e06d9bbbe Add RHEL 8 VDF install instructions 2020-01-27 20:45:48 -08:00
Gene HoffmanandGitHub b851444235 RHEL8 farmer/fullnode install instructions 2020-01-27 20:36:50 -08:00
Mariano SorgenteandGitHub 5c49a2858c Fix sqlite issue on Github CI machine (#87)
* Add a lock and update cbor2
* Support python3, and tests python3 in ci
2020-01-24 20:44:09 +09:00