Commit Graph
14659 Commits
Author SHA1 Message Date
Arvid NorbergandGitHub 6ceaec4477 [CHIA-1562] move signature validation into run_block_generator() (#18812)
* use run_block_generator() directly in block creation, to compute the final cost of the block we're creating. This lets us avoid validating the signature (to save time) and run in mempool mode

* always validate signatures in run_block_generator().

* remove PreValidationResult.validated_signature and instead defer to the inner SpendBundleConditions field
2024-11-06 10:57:03 -07:00
Earle LoweandGitHub c7a7d4e99a Fix incorrect comment about default hidden puzzle (#18820) 2024-11-06 10:49:53 -07:00
Earle LoweandGitHub 61cf266e28 CHIA-1697: Add new flag to support recursively scanning and following links (#18803)
* Add new flag to support recurvely scanning and following links

* black fix

* hardlink_to only in python 3.10+

* Remove unneeded hardlink checks as hardlinks to directories aren't a thing

* Minor update per code review

* use boolean_datacases

* Add new flag to initial-config
2024-11-06 10:24:02 -07:00
ChiaAutomationandGitHub 315f4bfa3a Update Managed Files (#18821) 2024-11-06 10:03:40 -07:00
Earle LoweandGitHub 7dd1324420 Await self_is_synced() (#18772)
Update full_node_simulator.py
2024-11-06 08:51:38 -07:00
Amine KhaldiandGitHub 816462d57a CHIA-1716 Speedup get_header_blocks_in_range w.r.t. blocks with no transactions (#18829)
Speedup get_header_blocks_in_range w.r.t. blocks with no transactions.
2024-11-06 08:40:47 -07:00
Florin Chirica 3aeffd46e8 Fix test. 2024-11-06 01:15:13 +02:00
Matt HauffandGitHub 15079c6a57 Fix pre-commit in chia/rpc/util.py (#18823) 2024-11-05 12:50:04 -07:00
Matt HauffandGitHub 42541aed42 [CHIA-1689] Miscellaneous ruff cleanups (#18817)
* Miscellaneous Ruff cleanups

* Migrate pyproject.toml to ruff.toml
2024-11-05 08:41:50 -07:00
Amine KhaldiandGitHub da607b2ac5 CHIA-1692 Annotate chia/rpc/util.py (#18798)
Annotate chia/rpc/util.py.
2024-11-05 08:41:38 -07:00
Amine KhaldiandGitHub 0d8920a942 CHIA-1684 Move obtain_current_passphrase next to KeyringWrapper (#18787)
Move obtain_current_passphrase next to KeyringWrapper.
2024-11-05 08:41:11 -07:00
Kyle AltendorfandGitHub 3f6977fe65 more start_* service starting consistency (#18775)
* more `start_*` service starting consistency

* fixup

* Update start_full_node.py
2024-11-05 08:40:47 -07:00
Florin Chirica 72e271da6e Fix tests. 2024-11-05 03:47:26 +02:00
Earle LoweandGitHub e07d1eb5de Use #!/usr/bin/env bash (#18762)
* Use #!/usr/bin/env bash

* Update setup-poetry.sh

* Use #!/usr/bin/env bash for shebang

* fix up typo for leading space

* For consistency fix up a few other scripts
2024-11-04 15:22:52 -07:00
Matt HauffandGitHub 2808ee2446 [CHIA-1681] Replace black with Ruff (#18813)
* Replace black with Ruff

* Change build_network_protocol_files.py
2024-11-04 15:22:18 -07:00
Kyle AltendorfandGitHub 2b19c289a9 make timeloard launcher fail with a non-zero exit code on windows (#18814)
* make timeloard launcher fail with a non-zero exit code on windows

* Update timelord_launcher.py
2024-11-04 12:35:05 -07:00
Kyle AltendorfandGitHub 6a0344fb0b only attempt poetry install when not present (#18811) 2024-11-04 12:33:51 -07:00
wjblankeandGitHub d95a5e7cf6 allow backcompat mode for logging (#18810)
* allow backcompat mode for logging

* fix stdout
2024-11-04 12:33:40 -07:00
Kyle AltendorfandGitHub bef7a5d763 test more services terminate (#18807)
* test more services terminate

* tidier

* tidier

* pick an available port for the timelord vdf server as well

* skip timelord launcher on windows

* use port 0 for the api port

* Update test_services.py

* no cover
2024-11-04 12:33:31 -07:00
ChiaAutomationandGitHub 6ba63a2987 Update Managed Files (#18777)
Update dep-review
2024-11-04 11:44:41 -07:00
Matt HauffandGitHub 73e4a5bbea [CHIA-1680] Finish replacing flake8 with Ruff (#18802)
* Apply ruff unsafe fixes

* Manually fix tuples with `as`

* Remove all references to flake8
2024-11-04 08:59:57 -07:00
Kyle AltendorfandGitHub 5d7a29093c use brew install --formula (#18808)
* use `brew install --formula`

to quiet down the warnings

https://github.com/Chia-Network/chia-blockchain/actions/runs/11632671637/job/32408059295#step:13:38
```console
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the `--cask` flag. To silence this message, use the `--formula` flag.
Warning: cmake 3.30.5 is already installed and up-to-date.
To reinstall 3.30.5, run:
  brew reinstall cmake

Warning: gmp 6.3.0 is already installed and up-to-date.
```

* Update install-timelord.sh
2024-11-02 16:26:47 -07:00
Kyle AltendorfandGitHub 40c3ccc4ee reduce 60 minute timeout for single assert (#18805) 2024-11-01 16:09:40 -07:00
Arvid NorbergandGitHub 12a089f5f4 [CHIA-1638] Pace block requests (#18729)
* pace block requests to avoid the peer hitting its response rate limit. Prioritize fast peers over slow ones

* fix mypy warning

* simplify making WSChiaConnection usable as a dictionary key

* address review comments
2024-11-01 12:10:01 -07:00
Matt HauffandGitHub 0e703e48e0 (Mostly) Replace flake8 with Ruff (#18801)
* Get flake8 config partially ready

* Mostly remove flake8 config

* Delete arithmetic whitespace ignore

* Delete unused program strings from tests

* Remove unnecessary noqas

* A couple more flake8 warnings
2024-11-01 09:55:16 -07:00
4910323dbc Replace class_for_type function with a dict (#18773)
* Pass down `class_for_type` dict instead of global function.

* Simplify

* Update chia/apis.py

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-11-01 09:54:10 -07:00
Matt HauffandGitHub efb7a292ed [CHIA-1679] Replace Pyupgrade with Ruff (#18795)
* Replace Pyupgrade with Ruff

* Fix python version
2024-10-31 11:56:14 -07:00
Kyle AltendorfandGitHub 68adc506c5 add native linux arm install script testing (#18776)
* add native linux arm install script testing

* correct

* shorter

* oops

* Update test-install-scripts.yml
2024-10-30 11:26:20 -07:00
Kyle AltendorfandGitHub 920b7405f9 less int(somefloatliteral) (#18796) 2024-10-30 09:30:53 -07:00
Kyle AltendorfandGitHub e60f7f0c1a explicitly check RpcApiProtocol classes (#18786) 2024-10-30 09:29:02 -07:00
Kyle AltendorfandGitHub 79ba87c32d explicitly check ApiProtocol classes (#18785) 2024-10-30 09:28:05 -07:00
Kyle AltendorfandGitHub 6a20ef2bb6 tidy venv usage in install.sh (#18778)
* tidy venv usage in `install.sh`

* Update install.sh

* Update install.sh
2024-10-30 09:27:53 -07:00
Matt HauffandGitHub 8f0cd0eab8 [CHIA-1673] Comment out a manual ._finish_sync() call (#18783)
* Delete a manual `._finish_sync()` call

* Add comment
2024-10-30 09:25:52 -07:00
Kyle AltendorfandGitHub 9e85af6047 remove prompt_yes_no() (#18755) 2024-10-30 09:25:27 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6e13ad1dca build(deps): bump chiapos from 2.0.4 to 2.0.7 (#18747)
Bumps [chiapos](https://github.com/Chia-Network/chiapos) from 2.0.4 to 2.0.7.
- [Release notes](https://github.com/Chia-Network/chiapos/releases)
- [Commits](https://github.com/Chia-Network/chiapos/compare/2.0.4...2.0.7)

---
updated-dependencies:
- dependency-name: chiapos
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 09:25:13 -07:00
Matt HauffandGitHub bea1447adb [CHIA-1672] Add parsing for JSON formatted spend bundles in /push_tx (#18764)
Add parsing for JSON formatted spendbundles in `/push_tx`
2024-10-30 11:17:32 -05:00
Florin Chirica c77fa7b3a4 Fix test. 2024-10-30 02:44:36 +02:00
Florin Chirica 11e1c623bb Lint. 2024-10-30 02:28:44 +02:00
Matt HauffandGitHub e1db6cb452 Replace Isort with Ruff (#18789)
Replace isort with Ruff
2024-10-29 12:47:40 -07:00
Matt HauffandGitHub bc901da0c2 [CHIA-1676] Make ruff an optional dependency (#18780)
Make ruff an optional dependency
2024-10-29 09:31:43 -07:00
Richard KissandGitHub f126023591 Don't import a wallet file from util. (#18742)
* Don't import a `wallet` file from `util`.

* coverage
2024-10-29 09:31:25 -07:00
Amine KhaldiandGitHub 11eba04e28 CHIA-1628 Annotate test_network.py (#18693)
Annotate test_network.py.
2024-10-29 09:31:13 -07:00
Florin Chirica 7765bbd504 Lint. 2024-10-29 06:01:22 +02:00
Florin ChiricaandGitHub 81083b2176 Merge branch 'long_lived/datalayer_merkle_blob' into fc.dl_integration 2024-10-29 05:20:52 +02:00
Kyle Altendorf e19839efc4 Merge branch 'main' into add_rs_merkle_blob 2024-10-28 16:51:11 -04:00
Kyle AltendorfandGitHub 6dee78ad63 correct wallet rpc api for get spendable coins with specified excluded coins (#18768)
correct wallet rpc api for get spendable coins with specified excludied coins
2024-10-28 13:28:05 -07:00
Earle LoweandGitHub c252a6415b Try updating to psutil 6.1.0 (#18763)
* Try updating to psutil 6.1.0

* merge to origin\main

* Fixes
2024-10-28 13:27:19 -07:00
Amine KhaldiandGitHub cfab9eb2b3 CHIA-1674 Remove no longer needed get_symmetric_key (#18770)
Remove no longer needed get_symmetric_key.
2024-10-28 10:31:34 -07:00
Amine KhaldiandGitHub 03a41ac486 CHIA-1668 Move validate_block_merkle_roots next to validate_block_body (#18757)
Move validate_block_merkle_roots next to validate_block_body.
2024-10-28 10:31:24 -07:00
Matt HauffandGitHub 6084112d48 [CHIA-1553] Replace pylint with ruff (#18759)
* Replace pylint with ruff

* poetry

* remove pylint

* Address comments by @altendky

* Undo formatting

* actually undo formatting
2024-10-25 15:55:37 -07:00