Commit Graph
816 Commits
Author SHA1 Message Date
Arvid NorbergandGitHub 8f8d27aca4 push out testnet11 soft fork activation height by 8 days (40000 blocks) (#20445) 2026-01-28 09:52:56 -08:00
Matt HauffandGitHub a19365ac4e [LABS-394] Add a streamable hack to force ConditionValidTimes serialization order (#20383)
Add a streamable hack to force `ConditionValidTimes` serialization order
2026-01-09 12:08:18 -08:00
Arvid NorbergandGitHub b7b3638fcc bump chia_rs to 0.35.1 (#20393) 2026-01-09 12:07:51 -08:00
Earle LoweandGitHub 581aa707a8 Make sure to close DB connection when getting DB limit info (#20344)
make sure to close DB
2025-12-15 09:47:32 -08:00
Arvid NorbergandGitHub bc2a7f7319 default to single solver thread (#20266)
default to single solver thread (solving the proof is already multi-threaded)
2025-11-25 11:38:36 -08:00
Matt HauffandGitHub 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 NorbergandGitHub 5664516dda Bump chia rs 0.34.0 (#20226)
bump chia_rs to 0.34.0
2025-11-10 17:02:10 -07:00
Patrick MaslanaandGitHub e054f62b29 checkpoint: into main from release/2.5.7 @ 03cc2fa245 (#20214)
Source hash: 03cc2fa245
Remaining commits: 0
2025-11-10 11:14:19 -07:00
Matt HauffandGitHub fcdb8e4925 Manual fixes for upcoming Ruff pyupgrade push (#20213)
* Manual fixes

* Revert back to variable in type expression

* Fix streamable to handle UnionType
2025-11-03 09:16:42 -07:00
Amine Khaldi 880d4d2fec Merge commit '03cc2fa2455d94e4b0cf17ea40cb3943e543750c' into checkpoint/main_from_release_2.5.7_03cc2fa2455d94e4b0cf17ea40cb3943e543750c 2025-10-30 19:26:28 +01:00
almogdepaz a14f326f14 lint 2025-10-30 15:55:53 +02:00
almogdepaz 4c8ac3435d remove solver from service start 2025-10-29 20:12:18 +02:00
Arvid NorbergandGitHub 85e935ef29 BlockTools issue (#20185)
fix issue in BlockTools where transaction_generator was (incorrectly) used as a proxy for whether the block was a TX block or not. Also improve error messages for plot sizes as well as the minimum plot size for v2 plots on testnet (which also affects our simulations in CI)
2025-10-22 08:52:49 -07:00
Matt HauffandGitHub 0a26924688 [CHIA-3606] Port create_offer_for_ids to @marshal (#20056)
* Port `create_offer_for_ids` to `@marshal`

* Self from typing_extensions

* Fix support for "" in PuzzleInfo/Solver
2025-10-21 11:00:37 -07:00
Zachary BrownandGitHub ab0114728c Add HARD_FORK_HEIGHT to initial-config.yaml for testneta (#20161)
* Add HARD_FORK_HEIGHT to initial-config.yaml for testneta

* Update HARD_FORK_HEIGHT in initial-config.yaml for testneta
2025-10-18 15:06:19 -05:00
Patrick MaslanaandGitHub 55339d6cee catchup: into main from long_lived/datalayer_merkle_blob @ eadce7954e (#20096)
Source hash: eadce7954e
Remaining commits: 0
2025-10-07 05:47:11 -07:00
Almog De PazandGitHub 6bd9360f5e Farmer solver networking (#20019)
* farmer connects to solver

* default solver peer

* configure solver peer

* solver trusted peers

* minor fixes

* connect to solver cli

* fix and rename fixture

* pr fixes

* load new service config if missing

* fix failling test

* fix test
2025-09-29 09:39:10 -07:00
Kyle AltendorfandGitHub f945e8cb98 handle zero capacity for lru cache (#20080) 2025-09-19 07:12:15 -07:00
Kyle Altendorf 5f5ab6055f Merge commit '73cb54789be134e0e373960f73e1a6ba70d3a90f' into catchup/long_lived_datalayer_merkle_blob_from_main_73cb54789be134e0e373960f73e1a6ba70d3a90f 2025-09-16 13:25:58 -04:00
Matt HauffandGitHub 326b1084ce [CHIA-3729] Fix clvm streamable type analysis (#20031)
* Use fully recursive JSON logic for compound clvm streamable types

* Accomodate rust types

* Accomodate dicts

* Broaden function to handle type[object] instead of type[Streamable] (with a little mypy workaround)

* Whoops, delete that

* Small bug

* Okay a complete rework

* Delete some now unused stuff

* Some edge cases
2025-09-10 12:31:00 -07:00
Kyle Altendorf 7e98baa814 Merge commit 'ebf8105fc12c351888069ba399be6cf998f680e0' into catchup/long_lived_datalayer_merkle_blob_from_main_ebf8105fc12c351888069ba399be6cf998f680e0 2025-09-05 15:06:31 -04:00
Almog De PazandGitHub 37e5b1c367 [CHIA-3673] Start solver with farmer (#20017)
* remove redundant comment

* add solver to farmer group
2025-09-03 09:25:41 -07:00
Patrick MaslanaandGitHub fb05d179bb [CHIA-3703] Add Enum support to streamable (#19983)
This PR adds support for `Enum`s to the streamable framework.

In order to support an `Enum` in your streamable class you must decorate
it with the `streamable_enum` decorator and specify a proxy streamable
object to use for serializing the enum's values. Once you've done this,
the object can be used in a streamble object.
2025-08-26 16:32:23 -07:00
Matt 4623d0d792 Comments by @altendky 2025-08-26 10:16:12 -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
Matt f3e85301c2 stop converting 2025-08-21 15:30:28 -07:00
Matt f2cb6b138b use EnumMeta for python < 3.11 2025-08-21 15:15:28 -07:00
Matt 4b55b7f2d4 make sure to convert to enum on parse 2025-08-21 15:12:29 -07:00
Matt 9af0b7c97c Add Enum support to streamable 2025-08-21 15:03:35 -07:00
Matt HauffandGitHub 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
Kyle Altendorf 70c3bdbe87 Merge commit 'cac84b5e057a074da6a72e2a8bbcc70ec0a09668' into catchup/long_lived_datalayer_merkle_blob_from_main_cac84b5e057a074da6a72e2a8bbcc70ec0a09668 2025-08-01 11:59:07 -04:00
Matt HauffandGitHub 55165b1163 [CHIA-3418] Change TransactionRecord to use dict instead of list of tuples for memos (#19846)
* Change `TransactionRecord` to use dict instead of list of tuples for memos

* Update streamable and fix tests

* Update test to accidentally fixed memos generation
2025-07-23 13:17:41 -07:00
Richard KissandGitHub 7cee2b2b61 ruff issues (#19787) 2025-07-14 08:52:42 -05:00
Kyle Altendorf fb8de7a1b3 Merge commit 'dac837e79961fa5ce9611d5531d789211031c465' into catchup/long_lived_datalayer_merkle_blob_from_main_dac837e79961fa5ce9611d5531d789211031c465 2025-07-11 22:35:57 -04:00
Arvid NorbergandGitHub 9d8c170b1a Fix plot size override (#19771)
* fix testnet11 plot size override as the constant has changed name

* correct overrides when starting the harvester as well

* update
2025-06-27 11:29:07 -07:00
Arvid NorbergandGitHub 224fb82383 require block generators to use canonical CLVM serialization after 3.0-hard fork (#19714) 2025-06-26 10:18:37 -07:00
matt-o-howandGitHub 80d38200a3 Migrate away from clvm imports (#19730)
* migrate casts to wallet util

* reset mempool_check_conditions

* ruff to re-order imports

* reset full_node_rpc_api

* add tests for casts

* ruff and type

* move to util to avoid consensus depending on wallet

* ruff again

* add a deterministic seed for random
2025-06-26 10:18:04 -07:00
Kyle Altendorf 668548cd33 Merge commit 'da20e4145fb6279d6880fd998b62456237e2f700' into catchup/long_lived_datalayer_merkle_blob_from_main_da20e4145fb6279d6880fd998b62456237e2f700 2025-06-23 22:03:50 -04:00
Matt HauffandGitHub 0a084139b0 [CHIA-3158] Add dicts to streamable (#19719)
* Add dicts to streamable

* Make sure serialization is detemrinistic

* one more irrelevant test

* whoops fix bug and catch it with test

* Revert "Make sure serialization is detemrinistic"

This reverts commit 1c8f37743a.

* Dont allow duplicate dict keys

* optimize
2025-06-20 08:50:04 -07:00
Kyle AltendorfandGitHub f054d339a1 unignore some ruff s rules (#19703) 2025-06-12 11:12:54 -07:00
6050235bdb [CHIA-3043] Add (hopefully) non-controversial ruff rules (#19684)
* Add (hopefully) non-controversial ruff rules

* mypy-exclusions.txt

* PIE

* Fix pre-commit?

* PYI

* RSE

* S + ignores

* Whitespace fix

* Re-add build-init-files.py

* Add comment about security ignores

* Update mypy-exclusions.txt

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

* Fix the executable status of build-init-files.py

* Set executable bit for tools/run_block.py and readd shebang

* Fix new errors

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-06-11 08:36:08 -07:00
Kyle Altendorf f44d748df3 Merge commit '082f0592d879ff6e784e4ad9d4f7a9f0442206ca' into catchup/long_lived_datalayer_merkle_blob_from_main_082f0592d879ff6e784e4ad9d4f7a9f0442206ca 2025-06-05 14:16:55 -04:00
Arvid NorbergandGitHub 2b7a453e38 promote block-creation setting to user-facing (#19545)
* make the mempool block creation more configurable

* update tests to cover both block creation functions
2025-06-02 10:39:04 -05:00
Kyle Altendorf 10d957680b Merge commit 'a803d18c3b6a84d1d36adb0c5f1786dfe36aa3dd' into catchup/long_lived_datalayer_merkle_blob_from_main_a803d18c3b6a84d1d36adb0c5f1786dfe36aa3dd 2025-05-29 13:15:14 -04:00
Richard KissandGitHub 1a0eb383dc Remove dependency chia.types so chia.util no longer depends on it (#19633)
* Move chia.util.full_block_utils to chia.full_node.full_block_utils

* chia.util.generator_tools => chia.consensus.generator_tools

* chia.util.vdf_prover => chia.simulator.vdf_prover

* Move 'chia.util.condition_tools' to 'chia.consensus'.
2025-05-27 09:03:23 -07:00
Richard KissandGitHub e4ccb8024f Fix chia.util <= chia.server dependency (#19629)
Move `get_unresolved_peer_infos` and `set_peer_info` from
`chia.util.config` to `chia.server.resolve_peer_info.py` so that
`chia.util` no longer depends upon `chia.server`.
2025-05-23 09:06:11 -05:00
Richard KissandGitHub 386787fb51 Move dump_keyring.py to remove dep chia.util => chia.cmds (#19600) 2025-05-22 10:17:54 -05:00
Kyle Altendorf 4e0f904cd3 Merge commit 'e81b213b9a7bb2a46539d2ef5ed1ed1cd9271345' into catchup/long_lived_datalayer_merkle_blob_from_main_e81b213b9a7bb2a46539d2ef5ed1ed1cd9271345 2025-05-16 15:59:57 -04:00
Richard KissandGitHub 20a0d934cb Move ssl_check.py to chia/ssl (#19596) 2025-05-12 08:53:18 -04:00
Richard KissandGitHub 44643084b0 Move augmented_chain.py and prev_transaction_block.py to chia/consensus (#19587) 2025-05-08 15:11:31 -05:00