Commit Graph
224 Commits
Author SHA1 Message Date
Gene HoffmanandGitHub 4e3e0dc6d7 Merge pull request #99 from Chia-Network/new-platforms
RHEL/Centos 8.1
2020-02-19 14:58:18 -08:00
Mariano Sorgente 5676e5ca9d Don't allow farming plots with wrong key 2020-02-07 14:55:52 -05: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
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
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
Mariano SorgenteandGitHub 88e991c67f Optional uvloop (#83)
* uvloop is an optional dependency
2020-01-23 14:19:47 +09:00
Bill Blanke 9db48385ff flake8 fix 2020-01-21 12:39:10 -08:00
Bill Blanke 83388d9198 temporarily remove multiprocessing until we have more work to do 2020-01-21 11:51:41 -08:00
Mariano SorgenteandGitHub c37222d0d5 Reduce memory requirement by clearing header list (#82) 2020-01-21 22:47:53 +09:00
wjblankeandGitHub d01cbcb901 Verifierwjb (#77)
C PoT improvements, partly using modified code from Flint/Antic

On Mon, Jan 13, 2020 at 11:03 PM Bill Hart <goodwillhart[at sign]googlemail.com> wrote:
Dear Bram Cohen,

I cannot relicense all of Flint and Antic as I don't own the copyright for all files.

However, I wrote the files you mention and therefore you can also use them under BSD 2-Clause. In addition, I hereby license you to use these files under the MIT license for your project. Please ensure that my copyright is retained on the files, as per the MIT license.

Best Wishes,

William Hart.

On Tue, 14 Jan 2020 at 01:10, Bram Cohen <bram[at sign]chia.net> wrote:
Hello Dr. Hart. As you likely already know in Chia's VDF implementation competition Antic and Flint were able to produce meaningful
improvements in how fast our VDF runs. We're now working on integrating those changes and making further improvements which we'd like
to upstream but we're having some licensing issues.

On all of Chia's code we use MIT, Apache2 and public domain. If you're willing to relicense using one of those or even relicense just the
following files that would be very helpful

https://github.com/wbhart/antic/blob/trunk/qfb/nudupl.c
https://github.com/wbhart/antic/commits/trunk/qfb/nucomp.c
https://github.com/wbhart/flint2/blob/trunk/fmpz/xgcd_partial.c

Please let me know what you think.

Thank you,

-Bram
2020-01-18 16:10:06 -08:00
Gene HoffmanandGitHub 2a002ab7b8 Change db name to blockchain_x.db 2020-01-14 22:25:43 -08:00
Mariano SorgenteandGitHub 91573826ca Fix short sync, fix sync tests, add short sync test (#72) 2020-01-15 14:25:59 +09:00
Gene HoffmanandGitHub b93fab7714 Remove whitespace per lint 2020-01-14 14:38:01 -08:00
Gene HoffmanandGitHub a07a298163 Format spelling fix correctly. 2020-01-14 14:29:13 -08:00
Gene HoffmanandGitHub 5bb072b009 Merge branch 'alpha-1.3' into patch-1 2020-01-14 13:22:00 -08:00
lvcivsandGitHub ac76acb8cc fix typo 2020-01-14 21:53:42 +01:00
Mariano SorgenteandGitHub 4a736883ca Full sync test and color logging (#69)
* Adds color logging, and test for full sync
2020-01-14 23:47:40 +09:00
Mariano Sorgente 69c808a33f Async waiting for processes, fix networking bug, reorganize blockchain class 2020-01-14 17:35:51 +09:00
Mariano Sorgente a52014881f Ensure process pool is shutdown, and use asyncio to wait 2020-01-14 00:06:25 +09:00
Mariano SorgenteandGitHub 49e4629935 Sqlite, RPC server, and other changes (#68)
* Switches to sqlite and remove all mongo stuff
* Starts RPC server on port 8555
* UI is in new process, communicates to node through rpc
* JSON serialization for streamables
* Harvester periodically prints its plot names and sizes
* Process names are set to chia_full node, chia_harvester, etc
* CONTRIBUTING.md, and remove docs from git (put in wiki)
* Adds the SmallHeaderBlock type, it's header block without the PoT and PoSpace
* Fix harvester bug (allows two harvesters in the same machine)
2020-01-13 22:19:53 +09:00
YostraandMariano Sorgente 8f8922c820 initial multiprocess validation (#67)
Multiprocess validation of blocks (prevalidation)
2020-01-13 15:14:39 +09:00
Mariano Sorgenteandwjblanke 281be67729 Alpha 1.2 (#64)
Remove database access from blockchain, and handle headers instead of blocks
Avoid processing blocks and unfinished blocks that we have already seen.
Also adds test for load.

Plotting improvements
2020-01-08 18:07:52 -06:00
Mariano SorgenteandGitHub a5329005e0 Fix self connection leak (#43)
* Fix self connection leak
* Increase sleep to improve performance
* Add load test for unfinished blocks
* Fix flake8 lint
2019-12-10 08:27:38 +09:00
Mariano SorgenteandGitHub cd266cfcbd Ui fix (#44)
* Fix UI issue, remove useless catch
* Increase sleep to improve performance
2019-12-10 08:10:05 +09:00
Richard KissandMariano Sorgente 541b409b99 Use setuptoools_scm for version numbers. (#42) 2019-12-09 21:29:37 +09:00
Florin ChiricaandGitHub effb5c2995 Stop process without iters if one with iters comes 2019-12-09 00:59:35 +02:00
Gene HoffmanandGitHub 2115c28a05 Merge pull request #40 from Chia-Network/timelord-fixes
Timelord fixes
2019-12-07 13:05:38 -08:00
Bill Blanke 85c5826d59 mypy fix 2019-12-06 14:43:44 -08:00
Bill Blanke 4576024506 more flake 2019-12-06 14:36:00 -08:00
Bill Blanke 6e9a9b1ba9 fixed flake errors 2019-12-06 14:17:53 -08:00
Bill Blanke 19b6bb959a vet introducer IPs 2019-12-06 11:17:25 -08:00
Florin ChiricaandGitHub a86441b89f flake8 2019-12-06 02:37:02 +02:00
Florin ChiricaandGitHub 42d889b330 Timelord: Fix estimates, pick process with minimal iters 2019-12-06 01:51:37 +02:00
fchirica 9606aa9e67 Add send iters loop inside the timelord, remove POLL 2019-12-06 00:01:25 +02:00
Mariano Sorgente 4353e6658e Remove useless connection close, and fix ssh ui bug 2019-12-06 03:27:40 +09:00
Mariano Sorgente adc6b35fdb Catch timeout issue during drain 2019-12-05 05:32:28 +09:00
Mariano Sorgente 3369ab181f Also catch cancelled in updateui 2019-12-05 01:54:56 +09:00
Mariano Sorgente 2c2bdac206 Close process faster 2019-12-05 01:34:02 +09:00
Mariano SorgenteandGitHub b8608942dc Hopeful timeout fixes (#39) 2019-12-05 01:11:25 +09:00
Mariano SorgenteandGitHub dae21de0c1 Fixping (#38)
* Higher ping interval, don't broadcast per connection

* Remove log files
2019-12-04 22:09:02 +09:00
Mariano SorgenteandGitHub 4cbd168527 Increase block reward to 16 trillion mojos and change displlay (#34) 2019-12-04 17:11:17 +09:00
Mariano SorgenteandGitHub f472217eed Ping (#36)
* Start ping pong

* Basic ping ping and disconnect

* Remove useless changes, increase timeout

* Remove connections on failed handshakes

* Only close full node peers to be safe
2019-12-04 17:09:32 +09:00
Florin ChiricaandMariano Sorgente 25cd828e71 Memory and iter count fix (#33)
* Memory and iter count fix

* Increase constant in vdf.h
2019-12-04 10:12:41 +09:00
Mariano SorgenteandGitHub 1e94a5312d Increase farmer threshold, fix ui bug, add docs (#32) 2019-12-04 02:23:25 +09:00
Mariano Sorgente 57186a3b6d Small fix to ssh server 2019-12-03 19:46:26 +09:00
Mariano SorgenteandGitHub bee9ce7a54 Add more explanation of how to use simulation (#29)
* Add more explanation of how to use simulation

* Prevent simultanous TCP connection

* Small comment fix
2019-12-03 19:03:43 +09:00
Mariano SorgenteandGitHub 54a87c9ccc Changes (#28)
* Sync changes
* Add recent peer threshold to full node
* Change farmer to weight instead of height
* Remove asyncio cancel, and add visibility of farming rewards
2019-12-03 03:38:00 +09:00
Mariano SorgenteandGitHub 402ea10e20 Sync changes (#27)
* Added a new API call GetAllHeaderHashes which returns just the header hashes. This is used for finding fork point.
* Only downloads headers and blocks from fork point
* Remove CancelledError logging
* Short sync should now work properly, it will always ask for previous block. There might be some repeated requests.
* Introducer now only returns peers which it has seen recently, and full node only connects to peers which it has heard from recently.
2019-12-02 22:47:09 +09:00
Mariano Sorgente 0adf7dacf6 Increase propagation thresholds, docs, fix request block 2019-12-02 17:38:51 +09:00
Bill Blanke 9f27e8c75d removed dead code. added logging for challenge and iter 2019-11-28 19:26:40 -08:00