Arvid Norberg and GitHub
09654aebd0
cache master SK to local SK and pool SK key derivations ( #20347 )
...
cache master SK to local SK and pool SK key derivations in BlockTools and plot manager cache. This speeds up some tests
2025-12-12 09:29:38 -08:00
Matt Hauff and GitHub
40db4635a8
[LABS-245] Enable PEP604 Ruff rules ( #20269 )
...
* Enable PEP604 Ruff rules
* Fix harcoded signature in test
* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
Arvid Norberg and GitHub
5664516dda
Bump chia rs 0.34.0 ( #20226 )
...
bump chia_rs to 0.34.0
2025-11-10 17:02:10 -07:00
arvidn
39764bb7c5
use log.exception() instead of log.error() and log.warning() when logging exceptions
2025-10-28 14:18:41 +01:00
Arvid Norberg and GitHub
794cce7826
PoS2-prover ( #20159 )
...
* bump chia_rs to 0.31.0
* integrate new pos2 API from chia_rs into V2Prover
* fixup test_harvester_api mocking of Prover
* review-comments: rename get_quality() to get_string() on Quality protocol
* reivew comments
* fixup bump chia_rs
* restore quality string to bytes32
2025-10-22 15:40:25 -07:00
Kyle Altendorf and GitHub
0396922f57
difficulty -> strength ( #20045 )
2025-09-09 12:50:16 -07:00
Arvid Norberg and GitHub
d62a61da37
[CHIA-3701] Check plots v2 ( #19982 )
...
* support v2 plots in check-plots
* review comments
2025-09-09 09:06:02 -07:00
Arvid Norberg and GitHub
e4961d9ddf
[CHIA-3654] [CHIA-3537] [CHIA-3673] stub chiapos2 API ( #19969 )
...
* stub chiapos2 API
* update block tools to support v2 plots when generating chains, as well as using the solve_proof() stub in the solver
* review comments
2025-09-03 09:24:44 -07:00
Arvid Norberg and GitHub
4d2d27192e
[CHIA-3659] ignore unreasonably small v2 plots ( #19984 )
...
just like we ignore unreasonably small v1 plots, ignore unreasonably small v2 plots
2025-08-26 11:21:37 -07:00
Arvid Norberg and GitHub
fcc0415e39
[CHIA-3701] cleanup check_plots ( #19981 )
...
* use monotonic clock to time check_plots operations
* move exception block up to save a level of indentation
* fix call to validate_proof()
2025-08-26 11:20:54 -07:00
52cd1086a7
[CHIA-3593] New solver service ( #19938 )
...
* add solver service
* lint
* wire service evrywhear
* prover protocol and v2Prover
* format name
* format
* refactor filename
* tests/raise unimplemented
* add get_filename_str to mock
* rename methods
* rename
* refactor
* improve coverage
* test from bytes
* harvester and farmer v2 support
* solver service, api, rpc
* clenup, add config to tests
* pre-commit
* remove mocks from test
* aync solver, fixtures, tests
* naming
* remove redundant farmer message
* solver fixtures and tests
* change quality_string to quality_chain
* fix service tests, cleanup
* name change, fix comments
* lint
* rename to partial proof
* network protocol test, use ThreadPoolExecutor
* naming and types
* check filter for both plot versions
* update network protocol tests
* more pr comments addressed
* fix rename
* fix network formatting error
* change to Assertion errors
* add todo
* remove strength from SolverInfo
* more pr comments, fix test to catch assertion
* revert strength
* test and comments
* rename to partial proof
---------
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
2025-08-22 15:26:09 -07:00
Arvid Norberg and GitHub
18fd65d13b
pass along plot format version from ProverProtocol into ProofOfSpace ( #19930 )
...
pass along plot format version from ProverProtocol into ProofOfSpace objects
2025-08-14 12:31:07 -07:00
Matt Hauff and GitHub
a803dc0fa6
[CHIA-3633] August 2025 pass of Ruff linting rules ( #19929 )
...
* Enable Ruff `PLR1704` (`redefined-argument-from-local`)
* Enable Ruff `PLR5501` (`collapsible-else-if`)
* Enable Ruff `PLW2901` (`redefined-loop-name`)
* bad change
* Enable Ruff `RUF043` (`pytest-raises-ambiguous-pattern`)
* Enable Ruff `RUF046` (`unnecessary-cast-to-int`)
* Enable Ruff `RUF052` (`used-dummy-variable`)
* Remove unused ignore `UP006`
* One mis-signaled regex
* Comments by @altendky
* bad change, my bad
2025-08-11 14:39:12 -07:00
Almog De Paz and GitHub
19a8329cbe
Plotmanager v2 ( #19832 )
...
* prover protocol and v2Prover
* format name
* format
* refactor filename
* tests/raise unimplemented
* add get_filename_str to mock
* rename methods
* rename
* refactor
* improve coverage
* test from bytes
2025-07-30 11:05:52 -07:00
Kyle Altendorf and GitHub
7a26610e8f
less pre-inting for ints ( #19853 )
2025-07-23 13:18:04 -07:00
Kyle Altendorf and GitHub
d50b6e0883
use chia_rs directly for sized bytes ( #19326 )
2025-02-28 09:35:25 -08:00
d7e2358a32
build(deps): bump ruff from 0.8.5 to 0.9.6 ( #19260 )
...
* build(deps): bump ruff from 0.8.5 to 0.9.6
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.8.5 to 0.9.6.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.8.5...0.9.6 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update source to ruff 0.9.6
* Apply suggestions from code review
Co-authored-by: Kyle Altendorf <sda@fstab.net >
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net >
Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com >
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2025-02-27 09:53:34 -08:00
Kyle Altendorf and GitHub
e446d6b726
use chia_rs directly for sized ints ( #19303 )
...
* use chia_rs directly for sized ints
* Update data_layer_rpc_api.py
2025-02-24 14:33:09 -08:00
Arvid Norberg and GitHub
95c82997a3
name threads in ThreadPoolExecutor ( #19250 )
2025-02-11 06:27:01 -07: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
Earle Lowe and GitHub
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
Matt Hauff and GitHub
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
Matt Hauff and GitHub
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
Kyle Altendorf and GitHub
9c8557a1f8
Remove Python 3.8 support and update source to 3.9 standards ( #18687 )
...
* manual python 3.8 removals
* poetry
* pyupgrade
* black
* isort
* manually tidy imports
* work around shadowed type
* catch up build network protocol files for pyupgrade changes
* placate pylint
* re-enable 20.04
* placate flake8
2024-10-16 14:21:15 -07:00
Matt Hauff and GitHub
3637bd33c6
Delete chia.util.misc ( #18170 )
...
* Move VersionedBlob to chia.util.streamable
* Move format_bytes to chia.cmds.cmds_util
* Move format_minutes to chia.cmds.cmds_util
* Move prompt_yes_no to chia.cmds.cmds_util
* Move get_list_or_len to from chia.plot_sync.receiver
* Move validate_directory_writable to chia.cmds.cmds_util
* Move *termination_signals to test_services
* Move UInt*Range to chia.util.streamable
* Create chia.util.batches
* Create chia.server.signal_handlers
* Create chia._tests.util.split_managers
* Move ValuedEvent to chia.types.transaction_queue_entry
* Move available_logical_cores to chia.util.cpu
* Move caller_file_and_line to chia._tests.util.misc
* Move satisfies_hint to chia._tests.wallet.test_singleton_lifecycle_fast
2024-06-18 08:27:17 -05:00
Patrick Maslana and GitHub
ca897f149a
Fix memo plotid ( #17856 )
...
* Convert hex to a string for memo and plotid
* Create a check for converting bytes to a string and remove the 32 bytes check for memo and plotid args in create_plots.py
* Return the args.plotid bytes32.fromhex(plot_str) instead of bytes.fromhex(plot_str)
* Remove debugging print that was used to print out the type
* Fix invalid type annotation
* Start using bytes32 for the type to prevent errors
* Change bytes32 to bytes
2024-04-30 15:23:00 -07:00
Kyle Altendorf and GitHub
6fe2c9c58a
use psutil.cpu_affinity() instead of os.cpu_count() ( #17409 )
...
* use `psutil.cpu_affinity()` instead of `os.cpu_count()`
* go simple for darwin
* assert, yay!
2024-01-31 09:28:37 -08:00
Kyle Altendorf and GitHub
c49cf8ca38
just use os.cpu_count() ( #17379 )
2024-01-25 16:49:42 -08:00
neurosis69 and GitHub
ffc11cd79c
extend measured sizes for plot check with value for k39 ( #17239 )
...
added values for k39 plot size
2024-01-12 12:15:54 -06:00
wjblanke and GitHub
101f1aa9e4
add measured sizes for plot check ( #16830 )
2024-01-05 16:13:16 -08:00
Arvid Norberg and GitHub
95e5b97557
Use bls from chia rs ( #16715 )
...
* replace blspy imports with chia_rs imports for BLS types
* remove blspy-stubs, since we're dropping the blspy dependency. chia_rs has type stubs already
2023-11-07 09:06:52 -08:00
Kyle Altendorf and GitHub
90c1441af0
apply pyupgrade --py38-plus --keep-runtime-typing ( #14646 )
2023-10-24 12:01:23 -05:00
Kyle Altendorf and GitHub
cd9d6eff33
add SizedBytes.random()/.secret(), replace token_bytes() usage ( #16276 )
2023-09-14 14:08:01 -05:00
Amine Khaldi
173f919fb7
Merge commit '10d09e6cd554a7f6a2b61b5373cdf5ac9cf82a21' into checkpoint/main_from_release_2.0.0_10d09e6cd554a7f6a2b61b5373cdf5ac9cf82a21
2023-08-18 20:17:31 +01:00
Amine Khaldi
936d1f9c89
Merge commit 'b59315836dd086e6506f10fd2bef3e620baabff0' into checkpoint/main_from_release_2.0.0_b59315836dd086e6506f10fd2bef3e620baabff0
2023-08-18 18:35:58 +01:00
Earle Lowe and GitHub
10d09e6cd5
Always use at least one worker for chia plots check ( #16099 )
...
* Always use at least one worker
* Fix type
* Black
2023-08-17 21:40:47 -05:00
Arvid Norberg and GitHub
7b0bea4043
various typing fixes ( #15899 )
...
* add blspy-stubs to improve mypy
* various typing fixes
* avoid cast
* use ValueError exception instead of assert when aborting picking a wallet key
2023-08-17 19:10:40 -05:00
Earle Lowe and GitHub
b59315836d
Adjust harvester warning to 8 seconds from 5 ( #16100 )
...
* Adjust harvester warning to 8 seconds from 5
* Update time in check plots to match harvester warning
* Fix up warning message
2023-08-17 18:37:18 -05:00
0deb8e6dc6
Timeout for retrieving a decompressor. ( #16047 )
...
* Timeout for retrieving a decompressor.
* Pre-commit fix
* Use new chiapos
* Use chiapos 2.0.1
---------
Co-authored-by: wallentx <william.allentx@gmail.com >
2023-08-16 18:40:29 -05:00
Florin Chirica and GitHub
cbf971e7f5
Don't farm compressed plots if context count is 0 ( #16004 )
...
* Don't farm compressed plots if context count is 0
* Move checks outside cache.
2023-08-11 13:40:49 -05:00
William Allen and GitHub
3a3b7e5ac2
Fix default parallel decompressor count ( #15845 )
2023-07-24 21:49:45 -05:00
Izumi Hoshino and GitHub
ec5ef087fe
Added defaults to get_harvester_config API ( #15820 )
2023-07-20 13:25:16 -05:00
Izumi Hoshino and GitHub
85d14f561a
Added compression level and harvesting mode to harvester protocol/mes… ( #15776 )
...
* Added compression level and harvesting mode to harvester protocol/messages
* Added test
* Fixed lint error
2023-07-18 16:24:56 -05:00
wjblanke and GitHub
69674ccf46
Fixed add lock around plot info ( #15767 )
...
* add lock around plot info
* set threads back to 5
2023-07-14 10:15:22 -05:00
f96690bdc5
Renaming instances of 'decompresser' to 'decompressor' ( #15751 )
...
* Renaming instances of 'decompresser' to 'decompressor'
* Making 'parallel_decompressors_count' singular
* Using chiapos version that has matching spelling
* Putting the clsp file back where I found it
* fix ver
---------
Co-authored-by: Jack Nelson <j.nelson@chia.net >
2023-07-13 09:59:51 -05:00
7b67fe0a4a
compressed plot support ( #15702 )
...
* Compression branch.
* disable GPU farming in tests
---------
Co-authored-by: Florin Chirica <fchirica96@gmail.com >
2023-07-12 16:49:15 -05:00
Arvid Norberg and GitHub
2559fbe6c4
fix typo in chia plots check ( #15727 )
2023-07-10 14:34:03 -05:00
Arvid Norberg and GitHub
01e6e7776f
multi threaded chia plots check ( #15693 )
...
* improve harvester warning messages
* run plot check in multiple threads
2023-07-06 15:38:26 -05:00
dustinface and GitHub
ebc5f3c124
util: Improve list_to_batches ( #15415 )
...
* Make `list_to_batches` work with collections instead of lists only
* Move `to_batches` into `chia.util.misc`
* Only support `set` and `list`
* Drop `tests.generator.test_to_batches` exclusion
* Improve type restrictions and be more coverage friendly in tests
2023-06-06 12:00:07 -05:00
Kyle Altendorf and GitHub
d84917f5df
hint chia.plotting.create_plots ( #14692 )
...
* hint chia.plotting.create_plots
* correct the import
* fixup
* imports
* get final from typing_extensions
2023-03-08 12:57:50 -06:00