Commit Graph
14659 Commits
Author SHA1 Message Date
Adam KellyandGitHub 1d6ce4da12 Remove accidental parameters from calls to setup_simulators_and_wallets and prevent future mistakes (#10770) 2022-03-21 16:26:11 -07:00
hugepantsandGitHub aaf949aa8b Capitalize display of Rpc -> RPC in chia show -s (#10797) 2022-03-21 16:22:37 -07:00
Kyle AltendorfandGitHub 25917d56a5 stop helping mkdir() do what it already does (#10802)
* stop helping mkdir() do what it already does

* flake8
2022-03-21 16:22:05 -07:00
Florin Chirica e403daaa3b New checkpoint. 2022-03-21 20:35:48 +02:00
Arvid NorbergandGitHub 9db85f3284 when running multiple services in the same process (in tests), don't initialize logging for all of them, and don't set the proctitle of the test (#10686) 2022-03-17 14:58:30 -07:00
artyandGitHub 36ea914201 Bump clvm_tools_rs to fix a problem running as daemon caused by old log message that is now eliminated (#10788) 2022-03-17 14:57:39 -07:00
Kyle AltendorfandGitHub 161a838b6a more set -o errexit (#10468)
* more set -o errexit -o pipefail

* no pipefail, too fancy for dash at least...
2022-03-17 09:13:27 -07:00
Matt HauffandGitHub 66747d045d Singleton 1.1 optimization (#10471)
* Instead of asserting our ID, assert our parent ID and amount

* Remove an unneccessary =

* Simplify big mutually recursive loop
2022-03-17 09:11:45 -07:00
Arvid NorbergandGitHub 144c4d1478 improve error messages from chia db upgrade, specifically to help users if the disk is full (#10494) 2022-03-17 09:11:08 -07:00
Francesco TruzziandGitHub 53da6ab41b add select_coins RPC method (#10495)
* add select_coins RPC method

* typing fix

* fix typing, casts

* add RPC coin selection tests

* black formatting

* fix select_coins tests
2022-03-17 09:10:21 -07:00
Arvid NorbergandGitHub ba6eb6af3d when creating a new blockchain database implicitly, make it v2 (#10498)
* when creating a new blockchain database implicitly, make it v2

* fix config deadlock
2022-03-17 09:09:26 -07:00
artyandGitHub 4bd8498e5a Enable clvm_tools_rs by default (#10554)
* Enable clvm_tools_rs by default

* Re-add clvm_tools dep for now as it provides python idioms for interacting with clvm data

* Take lint formatting

* Adam: Try making this non-parallel

* Try fix for threading issue in tests

* Test whether turning off parallel runs causes things to work (temp)

* Test use of temp files in clvm_tools_rs as a candidate solution for atomic replacement of hex output

* Use proper git+https url scheme (oops)

* Update to candidate 0.1.6 so we can test

* Revert version bump to re-test

* Test whether we can re-enable parallelism

* Attempt to mitigate concurrent test running: return own conception of the compiled output.  This will work if the failing path is downstream of recompilation

* fix path to hex file

* Probe for source of 0-length data

* Further exploration: more assertions, hopefully to trigger in the test on ci

* Do an even more paranoid check to verify that we observe a file whose filesystem reported size is much smaller than expected

* Try a heavier handed approach, using heavyweight lockfiles on the filesystem

* Import a simple lockfile implementation and use it to enforce mutual exclusion.  Simplify it and remove the unwanted os traffic

* Take lint, precommit advice, bump to clvm_tools_rs 0.1.6 now that it's released

* Fix lint

* While i was working on this, -n auto was on the command line so i think this didn't actually do anything, but reverting my change just in case

* Lint

* label the hashes re: pr

* Add a lock.py for spot exclusivity using the filesystem (re: adam in the pr) and a convenience wrapper that hides the details

* Formatting warning

* Ensure type info is present and do the obvious return of the inner function's result

* Use double quotes (lint)

* Properly balance blank lines

* Lint: alphabetize imports

* One line is required here (lint)

* Remove unnecessary assignment
2022-03-17 09:08:36 -07:00
dustinfaceandGitHub 0abaea3393 cmds: Fix trusted peer hint in chia wallet show (#10695)
`config` is the root config here.
2022-03-17 09:07:05 -07:00
Kyle AltendorfandGitHub aead84a346 less optional around ssl (#10558)
* less optional

* clean up cruft

* more

* more

* just a little less optional
2022-03-17 09:06:22 -07:00
Amine KhaldiandGitHub 6e499e0e62 Improve the CI runs w.r.t. timelord installation (#10673)
* Superficial analysis showed that only two test groups require (for now) installing the timelord. This change aims to save us hours of CI running time by simply running the install timelord script only for those test groups, with everything else having it omitted. Dedicated to @hoffmang9

* We don't need these anymore.
2022-03-17 09:05:33 -07:00
Kyle AltendorfandGitHub 1c8e4aef10 Use the passed root_path in configure CLI command (#10694) 2022-03-17 09:04:47 -07:00
Kyle AltendorfandGitHub 48cd97cf47 minor followup to config locking (#10696)
* minor lock scope reduction

* use the lock in tests
2022-03-17 09:03:58 -07:00
ChiaMineJPandGitHub 42fff8e773 Issues found in RPC API review (#10702)
* Removed unnecessary substitution

* Recovered  property which was accidentally removed in full node RPC API

* Added backward compatibility to `get_additions_and_removals` full_node RPC API

* Fixed full_node rpc client
2022-03-17 09:03:30 -07:00
Kyle AltendorfandGitHub f5d692f5c3 require test-cache repo is found in CI (#10711) 2022-03-17 09:02:41 -07:00
687ea720e3 New RPC get_coin_records_by_hint - Get coins for a given hint (#10715)
* RPC endpoint to retrieve coins by hint

* RPC client update for get_coin_records_by_hint

* start writing tests for get_coin_records_by_hint

* Address linting concerns.

* Address flake8. Fix the get_coin_ids() call.

* convert hint to bytes32

* tests for get_coin_records_by_hint

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2022-03-17 08:48:09 -07:00
Arvid NorbergandGitHub cd83a9ecde fix typo in command line argument parsing for chia db validate (#10716) 2022-03-17 08:47:31 -07:00
DaveandGitHub 073dc941f0 Fix typos lastest > latest (#10720) 2022-03-17 08:47:02 -07:00
Brandon ButlerandGitHub 6c5d7e7e89 Add healthcheck endpoint to rpc services (#10718)
* Add healthcheck endpoint to rpc services

* Trailing whitespace ding
2022-03-17 08:45:48 -07:00
JeffandGitHub 82e8b7dea5 Add maker fee to remaining offer RPCs (#10726) 2022-03-17 08:45:06 -07:00
Kyle AltendorfandGitHub 7850f7355a mypy 0.941 for pre-commit (#10728) 2022-03-17 08:44:28 -07:00
dustinfaceandGitHub e0c53864f5 harvester: Reuse legacy refresh interval if new params aren't available (#10729) 2022-03-17 08:43:53 -07:00
dustinfaceandGitHub 66c7427622 wallet: Optional wallet type parameter for get_wallets and wallet show (#10739)
* wallet: Add optional `type` parameter to `get_wallets` and `wallet show`

* tests: Use the `type` parameter for `get_wallets` in pool rpc tests

* cmds: Ask for the name of the wallet type in CLI
2022-03-17 08:42:48 -07:00
dustinfaceandGitHub 25630d3e7f wallet: Fix STANDARD_WALLET creation for wallet_info.id != 1 (#10757) 2022-03-17 08:41:54 -07:00
dustinfaceandGitHub d127898ce8 cmds: Implement chia rpc command (#10763)
* cmds: Implement `chia rpc` command

* Enable "timelord" client + some refactoring to enable "crawler" client
2022-03-17 08:40:54 -07:00
Adam KellyandGitHub 37843ee044 Change name to order of returned values. Enforce mandatory naming and inclusion of start_services parameter (#10769) 2022-03-17 08:39:30 -07:00
Arvid NorbergandGitHub 0e956c8b5a run benchmarks separately (#10754)
* run benchmarks separately

* only run benchmarks once, with the most recent python version we support
2022-03-17 08:36:51 -07:00
William AllenandGitHub bf2976a2a9 Updating Changelog for point release (#10781)
* Updating Changelog for point release

* Adding missing changelog items
1.3.1
2022-03-16 17:08:33 -07:00
Kyle AltendorfandGitHub da6f668f0c update chia-blockchain-gui one commit for npm build fix (#10776) 2022-03-16 16:21:46 -07:00
Kyle Altendorf f2feafd97f flake8 2022-03-16 16:11:25 -04:00
Kyle Altendorf 6e93b5a225 Merge commit '05f96670181654415b1ad219d38463228f30b0ce' into atari-merge_main_05f96670181654415b1ad219d38463228f30b0ce 2022-03-16 15:45:37 -04:00
Arvid NorbergandGitHub 7bab39161f more entropy in random listen ports (#10743) 2022-03-16 12:03:56 -07:00
Adam KellyandGitHub 7bbfa30a24 Ak.setup nodes (#10619)
* Remove unused test code

* Centralize fixture uses of setup_n_nodes

* Centralize fixure uses of setup_two_nodes

* Break up setup_nodes into setup_services, for individial services, and setup_nodes, for initializing different simulator configurations

* Sort imports
2022-03-16 11:47:54 -07:00
Kyle AltendorfandGitHub d1137f4582 Merge pull request #10749 from Chia-Network/use_random_ports_for_datalayer_tests 2022-03-16 14:22:25 -04:00
Kyle Altendorf 91f7edc15d remove unused import 2022-03-16 09:16:51 -04:00
Kyle AltendorfandGitHub c39d61f12f Merge pull request #10750 from Chia-Network/less_loggers_in_datalayer_tests 2022-03-16 09:06:54 -04:00
Kyle Altendorf 951d01975f tidy from review recommendations 2022-03-16 09:05:45 -04:00
Kyle Altendorf d60f6f2fdc less uint16 2022-03-15 19:34:04 -04:00
Kyle Altendorf 5f5b0fd7fa actually use find_available_listen_port() 2022-03-15 19:14:13 -04:00
Kyle Altendorf faa459d067 Merge branch 'atari' into use_random_ports_for_datalayer_tests 2022-03-15 18:43:10 -04:00
Kyle Altendorf fd6a2e21d6 remove unused import 2022-03-15 15:42:05 -04:00
Kyle Altendorf bed257b5eb less loggers in datalayer tests 2022-03-15 15:34:07 -04:00
Kyle AltendorfandGitHub 80ccea4657 Update test_data_rpc.py 2022-03-15 15:33:55 -04:00
Kyle Altendorf 35e301843e use random ports for datalayer tests 2022-03-15 15:26:45 -04:00
Adam KellyandGitHub 185a483d0d Remove unused test code (#10614) 2022-03-15 10:33:33 -07:00
Adam KellyandGitHub aa7123053b Convert helper method do_spend from a class method to a function (#10613) 2022-03-15 10:33:05 -07:00