Commit Graph
1095 Commits
Author SHA1 Message Date
Jude Allred 9b40409e86 Narrow PR to only provide structured logs for full_node_rpc_api 2026-02-11 14:09:35 -05:00
Jude Allred 323f8a8c46 Bug Fix: We must check that self.service is defined _before_ we access its properties. 2026-02-11 13:41:01 -05:00
Jude Allred 28ad73bb80 PR iterations -- Tidy structured error type.
-- rename structuredError.structuredMessage to message
-- remove the legacy 'message' field from structuredError.data, allow the top level 'error' string to preserve that for us.
-- remove the 'originalError' field from structuredError
-- rename structured_errors to rpc_errors
2026-02-11 13:41:00 -05:00
Jude Allred 8f11d892ff Use structured RPC errors 2026-02-11 13:40:56 -05:00
Matt HauffandGitHub 4ace81ae17 [LABS-294] Add kw_only to all wallet RPC types (#20324)
Add `kw_only` to all wallet RPC types
2026-01-21 09:48:44 -08:00
Matt HauffandGitHub baf8bd05c0 [LABS-311] Extract track_new_launcher_id from dl_track_new (#20320)
* Add optional creation to `get_dl_wallet`

* Extract `track_new_launcher_id` from `dl_track_new`
2026-01-09 12:04:29 -08:00
Matt HauffandGitHub 0f6fceb105 Delete unnecessary puzzles that have been moved to chia_puzzles_py (#20341) 2025-12-10 19:12:04 -08:00
Matt HauffandGitHub 2b3c11e170 [CHIA-3610] Port cancel_offer(s) to @marshal (#20066)
* Port `cancel_offer` to `@marshal`

* Port `cancel_offers` to `@marshal`

* forgot `push=True`
2025-11-25 10:57:19 -08:00
Matt HauffandGitHub 5ffb3618a3 [CHIA-3609] Port get_offer(s) to @marshal (#20062)
* Port `get_offer` to `@marshal`

* Port `get_all_offers` to `@marshal`
2025-11-21 09:45:26 -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
Richard KissandGitHub ec35492946 Api stubs (#19979)
* harvester_api_protocol

* move to apis

* Remove `chia.apis` => `chia.harvester` dependency.

* Remove circular dependencies between `chia.apis` and service modules.

* SolverAPIStub, and add solver to tach.toml.

* Make the stubs (lack of) implementations more consistent.

* Use `stub_metadata_for_type` instead of `class_for_type`.

The only thing ever used from `ApiProtocol` in `WSConnection`
was the metadata field, so let's pass along only that.

* NewSignagePointHarvester2

* remove some stuff
2025-11-12 09:06:12 -07:00
Matt HauffandGitHub 74ec8a44d4 [CHIA-3608] Port take_offer to @marshal (#20061)
* Port `take_offer` to `@marshal`

* `TransactionEndpointRequest` misses
2025-11-06 09:35:24 -07:00
Matt HauffandGitHub 590be179fc [LABS-161] Add a method for creating outgoing transactions (#20209)
* Add a method for creating outgoing transactions

* Fix some oversights wrt wallet_id
2025-10-31 08:56:15 -07:00
Matt HauffandGitHub 284310d637 [CHIA-3607] Port get_offer_summary to @marshal (#20058)
* Port `get_offer_summary` to `@marshal`

* test coverage
2025-10-31 08:55:36 -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
Kyle Altendorf 7e98baa814 Merge commit 'ebf8105fc12c351888069ba399be6cf998f680e0' into catchup/long_lived_datalayer_merkle_blob_from_main_ebf8105fc12c351888069ba399be6cf998f680e0 2025-09-05 15:06:31 -04: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
Richard KissandGitHub 4e6038ba3b Simplify dependencies wrt chia.server (#19895)
Remove some dependencies in `chia.server`.
2025-08-06 12:03:47 -07:00
Matt HauffandGitHub e8e060b533 [CHIA-3419] Remove TransactionRecord.*_json_dict_convenience (#19860)
* Change `TransactionRecord` to use dict instead of list of tuples for memos

* Update streamable and fix tests

* Update test to accidentally fixed memos generation

* Remove `TransactionRecord.*_json_dict_convenience`

* Fix test

* Use AddressType library in WSM method

* Use AddressType library in transaction_store method
2025-08-05 13:10:52 -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
35c03a5d17 Cleanup keys/values db. (#19829)
* Cleanup keys/values db.

* Fix bug.

* Add test.

* Lint.

* Add test.

* Lint.

* Move unconfirmed blobs in memory.

* Lint.

* Apply suggestions from code review

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

* Add field.

* functools too.

* Lint.

* Switch to context manager.

* Iterator.

* Ruff.

* Use context manager everywhere.

* Add test.

* Add test.

* Match exception.

* Apply suggestions from code review

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

* Address review comments.

* Use context maanger.

* Revert.

* Revert further.

* Revert.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-07-24 21:31:27 -04:00
Kyle AltendorfandGitHub 7a26610e8f less pre-inting for ints (#19853) 2025-07-23 13:18:04 -07: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
Kyle AltendorfandGitHub d352be14f3 use logical core count for batch size when lazy building dl cache (#19834) 2025-07-16 15:50:54 -04:00
Florin ChiricaandGitHub ee589a6199 DL Check root hash in missing hashes. (#19797)
* DL Check root hash in missing hashes.

* Poetry.

* Send root hash param.

* Switch branch.

* Use correct branch name.
2025-07-15 14:09:58 -04:00
Florin ChiricaandGitHub 7d077cdc46 DL Code Cleanup (#19782)
* DL code cleanup

* Lint.
2025-07-14 22:25:57 -04: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
Matt HauffandGitHub f782fa8341 [CHIA-1315] Port (wallet) DataLayer endpoints to @marshal (#19689)
* Port `create_new_dl`

* Forgot default_raise

* Port `dl_track_new`

* Port `dl_stop_tracking`

* Port `dl_latest_singleton`

* Port `dl_singletons_by_root`

* fix test

* Port `dl_update_root`

* Port `dl_update_multiple`

* fix tests

* Port `dl_history`

* Port `dl_owned_singletons`

* Port `dl_get_mirrors`

* Make `Mirror` streamable (and fix test)

* Port `dl_new_mirror`

* push=True

* Port `dl_delete_mirror`

* Port `dl_verify_proof`

* Fix test

* fix import
2025-06-27 11:29:24 -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
Kyle AltendorfandGitHub 32ca9c0804 by service not layer (#19715)
* by service not layer

* monkey patch fixup
2025-06-16 14:31:51 -07:00
Kyle AltendorfandGitHub 8e2545fba6 add chia dev data sync-time --prefer-db-kv-blob-length (#19693) 2025-06-11 16:22:45 -04:00
Kyle AltendorfandGitHub 36d8e2fd62 properly seed intra-sync persistent delta reader cache on new sync (#19702) 2025-06-11 14:09:04 -04: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 AltendorfandGitHub 53b2f90f44 rename to DataStore.prefer_db_kv_blob_length (#19692) 2025-06-09 15:39:18 -04:00
Florin ChiricaandGitHub d9098d6e20 Optimize add missing files (#19630)
* Optimize add missing files.

* Update poetry.lock

* Update poetry.lock

* Update pyproject.toml

* Redo lock file.

* Lint.

* Fix test.

* Checkpoint.

* Change reference.

* Change branch.

* Fix lock file.
2025-06-09 15:23:01 -04:00
Kyle AltendorfandGitHub 8c96c1a2e3 changeable key/value in-db blob size limit (#19669)
* changeable key/value in-db blob size limit

* tests

* test_get_keys_both_disk_and_db

* test_get_keys_values_both_disk_and_db

* fixup schema, like moving the index from the blob to the hash
2025-06-06 16:23:01 -04:00
Florin Chirica 1444d22316 Lint. 2025-06-03 16:35:19 +03:00
Florin Chirica 14593f452c Improve migration logging. 2025-06-03 16:17:31 +03: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 a803d18c3b The chia.protocols module no longer depends upon chia.server. (#19636)
<!-- 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?) -->

The modules `chia.protocols` and `chia.server` form a dependency loop.
This change at least removes the direct dependency of `chia.protocols`
on `chia.server`.

### 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) -->
2025-05-29 09:24:29 -07:00
c0410e97ec Bump chia rs >=0.24, <0.25 (#19615)
* bump chia_rs

* update db_graftroot test

* update SerializedProgram and Program use, to accommodate new chia_rs interface

* review comments

* review comments

---------

Co-authored-by: Matthew Howard <m.o.howard97@gmail.com>
2025-05-29 09:24:08 -07:00
Kyle AltendorfandGitHub 5d3fd3f5a9 catchup: into long_lived/datalayer_merkle_blob from main @ e81b213b9a (#19614)
Source hash: e81b213b9a
Remaining commits: 0
2025-05-21 09:33:34 -04:00
Florin ChiricaandGitHub 7bd9668d0b Fix delta file to use new format in duplicate hash. (#19582) 2025-05-19 10:10:01 -04: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
476ab8c730 Optimize DL functions for get keys/values. (#19609)
* Optimize DL functions for get keys/values.

* Update chia/data_layer/data_store.py

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

* Address review comment.

* Address review comments.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-05-16 13:45:29 -04:00
Kyle AltendorfandGitHub 213dc5808e catchup: into long_lived/datalayer_merkle_blob from main @ a8a30e3541 (#19584)
Source hash: a8a30e3541
Remaining commits: 0
2025-05-15 11:20:04 -04:00
Kyle AltendorfandGitHub cb3485bfcf reuse delta reader to avoid reloading data from disk (#19583)
* reuse delta reader to avoid reloading data from disk

* update chia_rs
2025-05-14 13:27:21 -04:00
Florin ChiricaandGitHub b03e7f6b48 Optimize add_missing_files (#19588)
* Separate add missing files into rust and non rust code.

* mypy

* Batch query the DB.
2025-05-13 13:28:24 -04:00
Richard KissandGitHub c800e06ac4 Remove the dependency of chia.consensus on the module chia.types (#19590)
* Move `chia/types/spend_bundle.py` to wallet.

* Move `compute_additions` functions into wallet.

* Move `chia/types/eligible_coin_spends.py` to `chia/full_node`.
2025-05-09 13:56:01 -05:00
Kyle Altendorf 6936950a4b Merge commit 'a8a30e3541a9074e2e5ca85e7869c90f61448b8b' into catchup/long_lived_datalayer_merkle_blob_from_main_a8a30e3541a9074e2e5ca85e7869c90f61448b8b 2025-05-07 09:46:08 -04:00