Commit Graph
14659 Commits
Author SHA1 Message Date
Arvid NorbergandGitHub ddcae129d5 fix run_block to actually pass in the chialisp_deserialization program, as required by consensus (#13238) 2022-09-08 13:47:20 -05:00
dustinfaceandGitHub 030082e350 github: Drop incorrect/leftover statement in test.yml (#13070) 2022-09-08 13:46:31 -05:00
87a3e93cc4 Ms.mypy enable (#13320)
* Remove mempool.additions

* Don't re run the program, and remove program from mempool item

* Removals only stores item ids, and stores a list

* Move pending cache down to prevent cache dos

* Separate validation from adding to pool, and remove mypy exceptions

* Fix bug with replacing

* Add to mypy

* Revert cbgui

* precommit fail

* Properly update the seen dict

* lint error

* Fix mempool bug

* Enable mypy for a bunch of files

* Update after merge with main

* 99/260 remaining

* Address comments

* Enable more mypy

* Merge conflict mypy file

* More fixes

* pytest.ini and cb-gui

* One more flake8 fix

* Flake8 and tests

* More test fixes

* isort

* Make LGTM happy

* Update chia/full_node/block_store.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update chia/full_node/full_node_store.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update chia/wallet/util/peer_request_cache.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Apply all suggestions from PR comments

* Revert cb-gui

* 100 back to 1000, minor tweaks

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-09-08 12:57:15 -05:00
Almog De PazandGitHub 792c3113f1 Improve test data rpc release (#13382)
* check spends and singletons before farming blocks

* up the timeouts
2022-09-08 10:26:17 -05:00
Earle LoweandGitHub fb50257586 Add default of 0 for amount with add_mirror cli (#13373) 2022-09-08 10:16:55 -05:00
Amine Khaldi a316899fd4 Merge commit 'ba5fea81dc6490f7ab714c630ac624f28606ea89' into checkpoint/main_from_release_1.6.0_ba5fea81dc6490f7ab714c630ac624f28606ea89 2022-09-08 15:55:02 +01:00
William AllenandGitHub e4b72bd5a3 Merge pull request #13381 from Chia-Network/checkpoint/main_from_release_1.6.0_7016240b393022fb75a82f4c206b10ccdb6458bc
checkpoint: into main from release/1.6.0  @ 7016240b39
2022-09-08 09:54:24 -05:00
Amine Khaldi f4746932e7 Merge commit '7016240b393022fb75a82f4c206b10ccdb6458bc' into checkpoint/main_from_release_1.6.0_7016240b393022fb75a82f4c206b10ccdb6458bc 2022-09-08 12:21:53 +01:00
Kyle AltendorfandGitHub 8db1943cde fix datalayer upsert test flakes (#13353) (#13372)
(cherry picked from commit 9b9868d3ef)
2022-09-07 22:46:20 -05:00
William AllenandGitHub 3417c6d229 Merge pull request #13377 from Chia-Network/checkpoint/main_from_release_1.6.0_7420850896eeb757bc4be9988b6e41db22061a2a
checkpoint: into main from release/1.6.0  @ 7420850896
2022-09-07 22:45:33 -05:00
Mariano SorgenteandGitHub 8fe1327f7f Fix race condition with reorged txs (#13366) 2022-09-07 22:25:34 -05:00
Kyle Altendorf 8e5a16c207 Merge commit '7420850896eeb757bc4be9988b6e41db22061a2a' into checkpoint/main_from_release_1.6.0_7420850896eeb757bc4be9988b6e41db22061a2a 2022-09-07 20:58:38 -04:00
William AllenandGitHub dd6b0962d2 Merge pull request #13368 from Chia-Network/checkpoint/main_from_release_1.6.0_1fdacc75a7ecc8f5169b3c4297c2bf91d99207a5
checkpoint: into main from release/1.6.0  @ 1fdacc75a7
2022-09-07 18:18:19 -05:00
Kyle AltendorfandGitHub 40c9027bfa Ignore FileNotFoundError when checking SSL file permissions (#13369)
* Ignore FileNotFoundError when checking SSL file permissions

* Let the natural `FileNotFoundError` propagate
2022-09-07 18:16:26 -05:00
Arvid NorbergandGitHub a3fd118487 instead of fetching every unspent coin from the DB, just to count how many small unspent coins we have, ask the DB to count directly. It's a lot faster (#13361) 2022-09-07 17:10:14 -05:00
Matt HauffandGitHub fa74e3bcd3 Check if file is present rather than string format (#13363) 2022-09-07 16:56:57 -05:00
Kyle AltendorfandGitHub 9b9868d3ef fix datalayer upsert test flakes (#13353) 2022-09-07 16:09:20 -05:00
Amine Khaldi baea40608a Merge commit '1fdacc75a7ecc8f5169b3c4297c2bf91d99207a5' into checkpoint/main_from_release_1.6.0_1fdacc75a7ecc8f5169b3c4297c2bf91d99207a5 2022-09-07 20:23:55 +01:00
William AllenandGitHub 6543778ce3 Merge pull request #13362 from Chia-Network/checkpoint/main_from_release_1.6.0_c59bf12f8ec8a0f2c195542af9a689b5e5b12164
checkpoint: into main from release/1.6.0  @ c59bf12f8e
2022-09-07 14:23:25 -05:00
Amine Khaldi a03a354a7a Merge commit 'c59bf12f8ec8a0f2c195542af9a689b5e5b12164' into checkpoint/main_from_release_1.6.0_c59bf12f8ec8a0f2c195542af9a689b5e5b12164 2022-09-07 15:46:14 +01:00
William AllenandGitHub 4b415364ec Merge pull request #13360 from Chia-Network/checkpoint/main_from_release_1.6.0_98ef42bf8ab19c3d6dd29b231beab379cafa5b72
checkpoint: into main from release/1.6.0  @ 98ef42bf8a
2022-09-07 09:44:10 -05:00
Amine Khaldi b2b6938949 Merge commit '98ef42bf8ab19c3d6dd29b231beab379cafa5b72' into checkpoint/main_from_release_1.6.0_98ef42bf8ab19c3d6dd29b231beab379cafa5b72 2022-09-07 14:54:12 +01:00
William AllenandGitHub 6caeea2c51 Merge pull request #13358 from Chia-Network/checkpoint/main_from_release_1.6.0_762cdbd0d4a9ccf1d5db720f2cc342edad034514
checkpoint: into main from release/1.6.0  @ 762cdbd0d4
2022-09-07 08:53:43 -05:00
Amine Khaldi 2cd1783441 Merge commit '762cdbd0d4a9ccf1d5db720f2cc342edad034514' into checkpoint/main_from_release_1.6.0_762cdbd0d4a9ccf1d5db720f2cc342edad034514 2022-09-07 11:33:16 +01:00
Kyle AltendorfandGitHub 47b7f2dc38 Replace localhost with 127.0.0.1 for tests (#13324) (#13341)
* Replace localhost with 127.0.0.1 in block tools config

* also make self_hostname fixture be 127.0.0.1

* Move config rewrite inside `automated_testing` conditional

(cherry picked from commit ec056f59b3)
2022-09-07 03:24:20 -05:00
Mariano SorgenteandGitHub 7e626abb3c The poor CI machine cannot go fast enough (#13347)
* The poor CI machine cannot go fast enough

* Also for data layer

* More increases
2022-09-07 02:43:26 -05:00
Arvid NorbergandGitHub 98adae20f2 use get_puzzle_and_solution_for_coin() from chia_rs (#13315) 2022-09-07 02:41:40 -05:00
William AllenandGitHub 4e13d7b12f Merge pull request #13352 from Chia-Network/checkpoint/main_from_release_1.6.0_93354f7ed095285aefbfb54203c4b6f4f520c736
checkpoint: into main from release/1.6.0  @ 93354f7ed0
2022-09-07 00:46:07 -05:00
Kyle Altendorf 6f26ef8c20 Merge commit '93354f7ed095285aefbfb54203c4b6f4f520c736' into checkpoint/main_from_release_1.6.0_93354f7ed095285aefbfb54203c4b6f4f520c736 2022-09-06 20:43:44 -04:00
William AllenandGitHub af31d0e8ec Merge pull request #13351 from Chia-Network/checkpoint/main_from_release_1.6.0_8b1a27b5ebb5fc9e584de3588199253f1da55df4
checkpoint: into main from release/1.6.0  @ 8b1a27b5eb
2022-09-06 19:39:00 -05:00
Kyle Altendorf 2165ec7f7e Merge commit '8b1a27b5ebb5fc9e584de3588199253f1da55df4' into checkpoint/main_from_release_1.6.0_8b1a27b5ebb5fc9e584de3588199253f1da55df4 2022-09-06 20:19:29 -04:00
William AllenandGitHub f42079b9fe Merge pull request #13349 from Chia-Network/checkpoint/main_from_release_1.6.0_48a9e53610086d7128304b6e2183c3a2083c6356
checkpoint: into main from release/1.6.0  @ 48a9e53610
2022-09-06 19:18:05 -05:00
Kyle Altendorf 157aa93c48 Merge commit '48a9e53610086d7128304b6e2183c3a2083c6356' into checkpoint/main_from_release_1.6.0_48a9e53610086d7128304b6e2183c3a2083c6356 2022-09-06 17:29:46 -04:00
William AllenandGitHub 1fb7f49a0c Merge pull request #13348 from Chia-Network/checkpoint/main_from_release_1.6.0_fc943f61113620c2ab8cc784308ce32f718138cd
checkpoint: into main from release/1.6.0  @ fc943f6111
2022-09-06 16:28:40 -05:00
Kyle Altendorf 3af23f3176 Merge commit 'fc943f61113620c2ab8cc784308ce32f718138cd' into checkpoint/main_from_release_1.6.0_fc943f61113620c2ab8cc784308ce32f718138cd 2022-09-06 16:09:43 -04:00
William AllenandGitHub 6fabb96c49 Merge pull request #13312 from Chia-Network/checkpoint/main_from_release_1.6.0_8bc1cc41a5f532765c09c975c515d649ee89ac0e
checkpoint: into main from release/1.6.0  @ 8bc1cc41a5
2022-09-06 15:04:17 -05:00
William AllenandGitHub d51d74a63c Bumping codeQL actions to v2 (#13344) 2022-09-06 14:41:27 -05:00
Gene HoffmanandGitHub 7948374278 Remove "Total iterations since start" from chia show -s (#13196) 2022-09-06 14:37:36 -05:00
Kyle AltendorfandGitHub 57351ba195 Avoid creating a list and enable short circuit behavior in bundle_suitable_for_compression() (#13331)
This avoids the creation of the list entirely.  In so doing it also allows `all()` to return `False` on the first uncompressable spend it finds instead of analyzing all of them first.
2022-09-06 13:05:48 -05:00
joshpainterandGitHub 29643d1feb Fix bug in remove_plot_directory (#13332)
Revert commit c400d816af
2022-09-06 13:04:49 -05:00
Mariano SorgenteandGitHub 8ef4c980b3 Ms.mempool simplify (#13314)
* Remove mempool.additions

* Don't re run the program, and remove program from mempool item

* Removals only stores item ids, and stores a list

* Move pending cache down to prevent cache dos

* Separate validation from adding to pool, and remove mypy exceptions

* Fix bug with replacing

* Add to mypy

* Revert cbgui

* precommit fail

* Properly update the seen dict

* lint error

* Fix mempool bug

* Update after merge with main

* Address comments
2022-09-06 12:32:03 -05:00
Kronus91andGitHub dda347e09c Load NFT off-chain metadata on backend (#13018)
* Fix NFT wallet naming

* Resolve comments

* Resolve comment

* Add tests

* Load off-chain metadata & nft_get_nfts pagination

* Fix pre-commit

* Resolve comments

* Resolve comments

* Fix precommit

* Resolve comments

* Resolve comment

* Fix pre-commit

* Fix unit test

* Add tests for pagination

* Resolve comments

* Fix pre-commit

* Resolve comments
2022-09-06 12:31:02 -05:00
Matt HauffandGitHub 09933f55c3 Fix complex NFT offer flakiness (#13337) 2022-09-06 11:18:14 -05:00
Almog De PazandGitHub d612567ef2 fix wallet rpc flakes (#13336)
* fix flakes and lower timeouts

* lint
2022-09-06 10:53:22 -05:00
Kyle AltendorfandGitHub 740211b460 data layer - wait for creation tx (#13240) (#13335)
(cherry picked from commit 8b1a27b5eb)
2022-09-06 10:52:44 -05:00
Kyle AltendorfandGitHub ec056f59b3 Replace localhost with 127.0.0.1 for tests (#13324)
* Replace localhost with 127.0.0.1 in block tools config

* also make self_hostname fixture be 127.0.0.1

* Move config rewrite inside `automated_testing` conditional
2022-09-06 10:51:05 -05:00
Kyle AltendorfandGitHub 4fecc3f6c1 astroid!=2.12.6, !=2.12.7 (#13338)
https://github.com/PyCQA/pylint/issues/7425
2022-09-06 10:50:30 -05:00
Arvid NorbergandGitHub 0d78058daa optimize get_block_store (#13263)
* optimize the block_store for the get_puzzle_and_solution_for_coin to not parse the full block. We just need the block generator and generator regs.

* optimize analyze-block

* address review comments
2022-09-03 01:34:05 -05:00
Kronus91andGitHub 3250a13a26 Display minter DID in CLI (#13311)
* Get minter DID for offer

* Fetch minter did for all NFTs

* Resolve comments

* Fix issues

* Fix pre-commit

* Fix unit test

* Display minter did
2022-09-02 17:10:41 -05:00
dustinfaceandGitHub 1b7c18654e cmds: Key label support for CLI - chia keys label (#12917) 2022-09-02 17:09:31 -05:00