450297b71c
Apply suggestions from code review
...
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2024-11-20 21:47:29 +02:00
Kyle Altendorf and GitHub
d3b5fde3b2
flake8 implicit str concat ( #18908 )
...
* ISC001
* ISC002
* ISC003 (not)
* fewer comments
* indentation
2024-11-20 12:00:16 -07:00
Kyle Altendorf and GitHub
dd028574bb
enable ruff flake8 async ( #18899 )
2024-11-20 09:00:14 -07:00
8d44c61913
Add support for a static list of peers to always have available in the dns_server ( #18890 )
...
* Add support for a static list of peers to always have available in the dns_server
* Add some tests
* Test the hostname to ip resolution for static dns server responses
* Sort imports
* Fix types/lint
* Fix test_db_processing flake
* remove unnecessary continue
* Ensure the parts that used to loop every 2 seconds when the DB is being populated for the first time still loop every 2s
* Update chia/seeder/dns_server.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
* Remove redundant check for crawl store
---------
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
2024-11-20 09:00:02 -07:00
Arvid Norberg and GitHub
14da93c58c
fix the rollback of fork_info when validating a block fails ( #18873 )
...
* fix the rollback of fork_info when validating a block fails
* simplify removing peers during short sync
2024-11-20 08:59:01 -07:00
Arvid Norberg and GitHub
84dc738252
move get_name_puzzle_conditions() into test utils ( #18839 )
...
move get_name_puzzle_conditions() into test utils. It's only used by tests
2024-11-20 08:57:12 -07:00
Amine Khaldi and GitHub
d1818faaf8
CHIA-1709 Pass a ValidationState to validate_unfinished_block_header ( #18818 )
...
Pass a ValidationState to validate_unfinished_block_header.
2024-11-20 08:57:01 -07:00
Florin Chirica
75dfd81633
Optimize DL benchmark.
2024-11-20 00:17:06 +02:00
Matt Hauff and GitHub
3bc2fbff35
[CHIA-1696] Show an INCOMING_TX for pool reward claims ( #18887 )
...
* Show an `INCOMING_TX` for pool reward claims
* The last thing worked, but not really
2024-11-19 13:22:19 -07:00
Arvid Norberg and GitHub
1c12526b20
Bump chia rs 0.16.0 ( #18878 )
...
* bump chia_rs dependency to 0.16.0
* add placeholder activation height for soft-fork 6
2024-11-19 06:21:47 -07:00
Kyle Altendorf
67533ed6ac
Merge commit '748c8cec8e24c0feabc10e8db22284dc3712180f' into catchup/long_lived_datalayer_merkle_blob_from_main_748c8cec8e24c0feabc10e8db22284dc3712180f
2024-11-18 16:56:19 -05:00
Kyle Altendorf and GitHub
dc20922604
Integrate Merkle Blob into Data Layer ( #18711 )
...
<!-- Merging Requirements:
- Please give your PR a title that is release-note friendly
- In order to be merged, you must add the most appropriate category
Label (Added, Changed, Fixed) to your PR
-->
<!-- Explain why this is an improvement (Does this add missing
functionality, improve performance, or reduce complexity?) -->
### Purpose:
<!-- Does this PR introduce a breaking change? -->
### Current Behavior:
### New Behavior:
<!-- As we aim for complete code coverage, please include details
regarding unit, and regression tests -->
### Testing Notes:
<!-- Attach any visual examples, or supporting evidence (attach any
.gif/video/console output below) -->
2024-11-18 16:50:48 -05:00
Kyle Altendorf and GitHub
748c8cec8e
# TODO: stop dropping tasks on the floor (#18866 )
...
* # TODO: stop dropping tasks on the floor
* Update chia/_tests/core/data_layer/test_data_rpc.py
* no really, stop
2024-11-18 12:32:52 -07:00
Chris Marslender and GitHub
817427c19f
If 0 peers to crawl, sleep before trying to crawl again ( #18882 )
...
* If 0 peers to crawl, sleep before trying to crawl again
* Invert the logic to only have one place that we sleep
2024-11-18 12:15:36 -07:00
wjblanke and GitHub
05cddcc9b9
save tasks for TX processing ( #18879 )
...
* save tasks for TX processing
* ruff
2024-11-17 14:51:28 -07:00
Florin Chirica
b768f4ce70
Fix test.
2024-11-15 20:03:31 +02:00
Kyle Altendorf and GitHub
709f14abe9
use the vars for the test parameters too ( #18868 )
2024-11-15 09:03:39 -07:00
Florin Chirica
166a734232
Use deepcopy everywhere.
2024-11-15 05:40:18 +02:00
Florin Chirica
6b543dc380
Try with deepcopy.
2024-11-15 05:36:21 +02:00
Florin Chirica
9aad2f793d
Mypy.
2024-11-15 04:37:03 +02:00
Florin Chirica
404f1c5168
Add merkle blob cache.
2024-11-15 04:31:45 +02:00
Matt Hauff and GitHub
604fc1feb0
[CHIA-1732] Add Ruff specific linting rules ( #18845 )
...
* Add Ruff specific linting rules
* Further tighten ignore list
* Address comments by @altendky
* One more comment @altendky
2024-11-14 15:58:12 -07:00
Kyle Altendorf and GitHub
f5235c2b5e
add /get_log_level, /reset_log_level, and /set_log_level to all rpcs ( #18843 )
...
* add `/get_log_level` and `/set_log_level` to all rpcs
* tidy
* for py <3.11
* fixup
* add tests
* a few no covers
* add `RpcClient.reset_log_level()`
* tidy
* fixup
2024-11-14 15:57:18 -07:00
cb9f7d210f
build(deps): bump colorlog from 6.8.2 to 6.9.0 ( #18857 )
...
Bumps [colorlog](https://github.com/borntyping/python-colorlog ) from 6.8.2 to 6.9.0.
- [Release notes](https://github.com/borntyping/python-colorlog/releases )
- [Commits](https://github.com/borntyping/python-colorlog/compare/v6.8.2...v6.9.0 )
---
updated-dependencies:
- dependency-name: colorlog
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-14 08:33:52 -07:00
Kyle Altendorf and GitHub
96a8be8f63
fill in missing rpc client methods ( #18851 )
...
* fill in missing rpc client methods
* no cover
2024-11-14 08:33:42 -07:00
Kyle Altendorf and GitHub
ed74439d73
check network errors and their .__cause__ for expected error types ( #18849 )
2024-11-14 08:15:56 -07:00
Amine Khaldi and GitHub
2499e9721f
CHIA-1734 Annotate spend_bundles as a sequence in WalletSpendBundle's aggregate ( #18840 )
...
Annotate spend_bundles as a sequence in WalletSpendBundle's aggregate.
2024-11-14 08:15:06 -07:00
Amine Khaldi and GitHub
12d1176d77
CHIA-1735 Speedup tx_additions and removed handling in get_header_blocks_in_range ( #18841 )
...
Speedup tx_additions and removed handling in get_header_blocks_in_range.
2024-11-14 08:14:48 -07:00
Amine Khaldi and GitHub
8d492e638c
CHIA-1727 Clarify the validation state that we calculate for the next block if it's validated ( #18835 )
...
Clarify the validation state that we calculate for the next block if it's validated.
2024-11-14 08:14:29 -07:00
Florin Chirica
094e5cfc26
Lint.
2024-11-14 03:10:51 +02:00
Florin Chirica
c3082076ac
Address comments.
2024-11-14 03:08:13 +02:00
Kyle Altendorf and GitHub
c6ad3b4cb8
add arch emojis 🌀 💪 ✳️ ( #18864 )
...
* add arch emojis 🌀 💪 ✳️
* fixup
2024-11-13 12:54:06 -07:00
c8707a1bca
build(deps): bump filelock from 3.15.4 to 3.16.1 ( #18859 )
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.15.4 to 3.16.1.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.15.4...3.16.1 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-13 09:54:12 -07:00
Matt Hauff and GitHub
ac278351ef
[CHIA-1236] Sort offers in CLI by RELEVANCE ( #18824 )
...
Sort offers in CLI by `RELEVANCE`
2024-11-13 09:53:58 -07:00
Earle Lowe and GitHub
ecdf4f4997
CHIA-1645: Some daemon start cleanup ( #18809 )
...
* Some daemon start cleanup
* mypy fixes
* Reduce scopy of change
* typo
* Use *=
2024-11-13 09:09:35 -07:00
Amine Khaldi and GitHub
d9f7108e97
CHIA-1685 Simplify return values for validate_block_body ( #18790 )
...
Simplify return values for validate_block_body.
2024-11-13 09:08:32 -07:00
thesemaphoreslim and GitHub
075adb251e
Logging changes for feeler connections ( #18784 )
...
* Check if connections are classified as feelers and log connection successes/failures to debug level only. Continue logging warnings/errors as before, just specify if they are associated with feeler connections.
* Reformatted for CI
* Flake8 formatting
* Simplified logging into one-liners where possible.
2024-11-13 09:08:08 -07:00
3745e5222d
Apply suggestions from code review
...
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2024-11-13 03:05:41 +02:00
6c90a76b56
Tighten up ruff ignore list ( #18837 )
...
* Tighten up ruff ignore list
* Okay that fix was indeed unsafe
* enable type-name-incorrect-variance
* enable literal-membership
* enable non-augmented-assignment
* enable useless-return
* enable global-variable-not-assigned
* -
* fixup
* Clean up roff.toml from annotations
* use ignore instead of explicit re-export
* use more descriptive names
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2024-11-12 12:19:31 -07:00
Arvid Norberg and GitHub
06b2447f6c
[CHIA-1655] simplify pre_validate_blocks_multiprocessing() ( #18836 )
...
simplify pre_validate_blocks_multiprocessing() by making it pre-validated one block at a time. That's how we use it in production code anyway
2024-11-12 08:57:02 -07:00
08730a266b
build(deps): bump pyyaml from 6.0.1 to 6.0.2 ( #18793 )
...
Bumps [pyyaml](https://github.com/yaml/pyyaml ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/yaml/pyyaml/releases )
- [Changelog](https://github.com/yaml/pyyaml/blob/main/CHANGES )
- [Commits](https://github.com/yaml/pyyaml/compare/6.0.1...6.0.2 )
---
updated-dependencies:
- dependency-name: pyyaml
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-11-08 13:13:33 -07:00
Arvid Norberg and GitHub
c4ac6c763e
the mempool thread pool should not set the process name ( #18842 )
2024-11-08 09:56:50 -07:00
Arvid Norberg and GitHub
80911d475e
[CHIA-1703] ignore ephemeral spends in mempool superset rule ( #18834 )
...
ignore ephemeral spends in mempool superset rule
2024-11-08 08:58:56 -07:00
Amine Khaldi and GitHub
569a47c84b
CHIA-1717 Handle index error on empty peers with peak in request_validate_wp ( #18830 )
...
Handle index error on empty peers with peak in request_validate_wp.
2024-11-08 08:58:45 -07:00
ff3cf282c2
explicitly collect api methods instead of later using getattr ( #18800 )
...
* explicitly collect api methods instead of later using getattr
* api as a class itself
* tidy
* fixup
* tidier
* and...
* fixup
* oops
* mm
* hum
* fixup
* monkey patching helper
* ...
* tidy
* back to instances
* fix
* self-patch
* duplicate original request attributes
* Update chia/_tests/wallet/sync/test_wallet_sync.py
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org >
* test that `@metadata.request()` fails on repeated request type
* ...
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org >
2024-11-08 08:58:15 -07:00
9eb1d5ac7c
build(deps): bump clvm from 0.9.10 to 0.9.11 ( #18827 )
...
Bumps [clvm](https://github.com/Chia-Network/clvm ) from 0.9.10 to 0.9.11.
- [Release notes](https://github.com/Chia-Network/clvm/releases )
- [Changelog](https://github.com/Chia-Network/clvm/blob/main/HISTORY.org )
- [Commits](https://github.com/Chia-Network/clvm/compare/0.9.10...0.9.11 )
---
updated-dependencies:
- dependency-name: clvm
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-11-07 09:19:39 -07:00
Florin Chirica
605ceebdca
Lint.
2024-11-07 05:13:32 +02:00
Florin Chirica
3f0efa14ad
Lint.
2024-11-07 05:10:59 +02:00
Florin Chirica
cef14dbe01
Fix bug.
2024-11-07 05:05:52 +02:00
3d5752e25f
build(deps): bump keyring from 25.2.1 to 25.5.0 ( #18794 )
...
Bumps [keyring](https://github.com/jaraco/keyring ) from 25.2.1 to 25.5.0.
- [Release notes](https://github.com/jaraco/keyring/releases )
- [Changelog](https://github.com/jaraco/keyring/blob/main/NEWS.rst )
- [Commits](https://github.com/jaraco/keyring/compare/v25.2.1...v25.5.0 )
---
updated-dependencies:
- dependency-name: keyring
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-06 12:56:50 -07:00