Commit Graph
42 Commits
Author SHA1 Message Date
58b52a9091 Ms.multiprocessing2 (#665)
* Ms.bug fixes (#615)

* on_disconnect callback called if present, for services (full_node, farmer, etc) when a connection is closed
* connections added or removed are reflected in UI
* No migration of wallet full node peer
* More blockchain_transaction tests re-enabled
* Blockchain tests uncommented
* get_block_peak fixed in blockchain.py
* Reduce some logging in tests, and asynciosqlite logs suppressed for the DEBUG level

* Assert fee test

* Re-enable tx tests

* Don't log errors on task cancel

* More full node tests

* Add test and fix edge case for first sub slot

* More tests

* Multiprocessing for block validation

* Fix issue where sub slot is not present

* More bug fixes / tests

* continue

* test for multiprocessing

* Implement sync

* Change cpu count

* Fix lint

* Tweaks

* fix teardownn issue

* Fix issue where sub slot is not present

* Another bug fix and more logging

* Fix test

* Try to fix the other test

* Same store fix as in dev

* Fix import for tests

* Fix tests

* Fix test

* Increase test timeout

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2021-01-13 13:44:33 -08:00
YostraandYostra 0572cccb43 split tests 2021-01-12 17:02:22 -05:00
almogandYostra 8e41ea856d fix comment 2021-01-12 17:02:22 -05:00
almogandYostra 23b003be12 fix segment validation bugs 2021-01-12 17:02:22 -05:00
Mariano SorgenteandYostra 30aa656a84 Ms.bug fixes (#615)
* on_disconnect callback called if present, for services (full_node, farmer, etc) when a connection is closed
* connections added or removed are reflected in UI
* No migration of wallet full node peer
* More blockchain_transaction tests re-enabled
* Blockchain tests uncommented
* get_block_peak fixed in blockchain.py
* Reduce some logging in tests, and asynciosqlite logs suppressed for the DEBUG level
2021-01-12 17:02:22 -05:00
Almog De PazandYostra be2eadfabd extend weight proofs (#596)
* pospace validation + sub_epoch hash validation
* uncomment block positioning validation
* extend proof if possible
* validate summaries weight
* create proof on new peak
2021-01-12 17:02:21 -05:00
830dc6d80c weight proofs fixes (#583)
* handle peaks of short chain

* cache last weight proof, handle block cache misses

* iterate on sub_epochs

* Clean up timelord log lines

* chiavdf to 0.13.1b2

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2021-01-12 17:00:54 -05:00
Gene HoffmanandYostra 6d00c6021f Download test blocks and separate macos test from macos installer build (#578)
* Cache test plots

* Switch to cacheing blocks

* expand user path

* Update changelog, black

* $HOME

* Split MacOS into test and installer - test cache

* Download the block cache from kb pages/download.chia.net

* create dir first

* re-enable all the tests

* black

Co-authored-by: Yostra <straya@chia.net>
2021-01-12 17:00:54 -05:00
almogandYostra 8573526280 error handling 2021-01-12 17:00:54 -05:00
almogandYostra d8ef8e140e clean lint errors 2021-01-12 17:00:54 -05:00
almogandYostra 25a4733d12 error handling, logs, test error handling 2021-01-12 17:00:54 -05:00
almogandYostra 580ce58862 update test_weight_proof.py 2021-01-12 17:00:54 -05:00
Bill BlankeandYostra 9e5afe7163 moved tests 2021-01-12 17:00:54 -05:00
Mariano SorgenteandYostra 440fe8b78f Update Pospace quality formula, chech32m, min/max plot sizes, tests 2021-01-12 17:00:54 -05:00
Mariano SorgenteandYostra 02eca259a0 Update chia show and netspace 2021-01-12 17:00:54 -05:00
Mariano SorgenteandYostra 542b08260b Python black everything 2021-01-12 17:00:53 -05:00
Mariano SorgenteandYostra 1e716b5e56 Flake8 tests 2021-01-12 17:00:53 -05:00
Mariano SorgenteandYostra 88cf51ad82 Mypy for src 2021-01-12 17:00:53 -05:00
Mariano SorgenteandYostra ba448a7a23 Comment out pot iterations test 2021-01-12 17:00:53 -05:00
Mariano SorgenteandYostra 0bd541fcd3 Start getting tests to pass 2021-01-12 17:00:53 -05:00
Mariano SorgenteandYostra fff9ccb026 Got simulation test to pass 2021-01-12 17:00:53 -05:00
Mariano SorgenteandYostra 2d63bbbfa5 Fix long range reorg bug 2021-01-12 17:00:52 -05:00
Mariano SorgenteandYostra e9d2b1f761 IPS-> slot iters. Faster tests 2021-01-12 17:00:52 -05:00
Mariano SorgenteandYostra ad2cffd0c4 Add reorg tests and fix reorg bug 2021-01-12 17:00:52 -05:00
Mariano SorgenteandYostra bd66feb9ec More updates to farming, and fix memory leak 2021-01-12 17:00:52 -05:00
Mariano SorgenteandYostra bf012e4eea Fixes to cc VDF and tests 2021-01-12 17:00:51 -05:00
Mariano SorgenteandYostra a55649847f Switch to signage point based iters 2021-01-12 17:00:51 -05:00
Mariano SorgenteandYostra 5da9dfd1ed Change to slot sub_slot 2021-01-12 17:00:51 -05:00
Mariano SorgenteandYostra f7d0aa3213 refactor difficulty adjustment and ips 2021-01-12 17:00:51 -05:00
Gene HoffmanandYostra b7e9f53e39 Fix MD lint, more missing imports, more black 2021-01-12 17:00:50 -05:00
Mariano SorgenteandYostra 1228ecf77b Add test for iters 2021-01-12 17:00:50 -05:00
Gene HoffmanandGene Hoffman 4107cbebe0 black tests/ 2020-10-01 11:07:12 -07:00
Mariano SorgenteandGene Hoffman 966b5bb989 Reformat using python black 2020-10-01 11:07:12 -07:00
Gene Hoffman 57c5e19353 Move to Super Linter 3.9.2 - now lint Black, flake8, mypy (#390)
* Try Super Linter at 3.9.0 and add linters

* 3.9.1 and set validate all to false

* Back to 3.9.1 and use only true VALIDATE_

* Place superlint in debug mode

* Try fix from 3.9.2

* black source. Start fixing flake8 issues

* Black tests, out of debug

* Black setup.py do to merge conflict
2020-09-14 15:38:55 -07:00
Mariano Sorgente b1778095d6 New difficulty change and min_iters change, and light header verification 2020-03-18 17:17:59 +09:00
Mariano Sorgente 48901a02a7 Use standard hash everywhere 2020-02-10 19:07:20 -05:00
Mariano Sorgente 1c0f7fee49 All ints in quality calculation, quality to quality string 2020-02-10 18:39:03 -05:00
Alex Wice 4f9ba50b15 pyblack autoformatting 2019-11-18 13:50:31 +09:00
Alex Wice 8be7181c9d sort and remove unused imports 2019-11-18 13:49:39 +09:00
Mariano Sorgente 5869538416 Start with block page, and remove global connections lock 2019-10-31 10:34:16 -07:00
Mariano Sorgente b4baff9f4e Fix tests 2019-10-16 17:38:49 +09:00
Mariano Sorgente 397925d29e Implement new formula, and added tests 2019-10-09 16:36:58 +09:00