Commit Graph
14659 Commits
Author SHA1 Message Date
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
Arvid NorbergandGitHub 5d8b3c8ca7 bump chia_rs to 0.26.0 (#19746)
* bump chia_rs to 0.26.0

* review comments

* more review comments

* fix lockfile
2025-06-26 10:17:50 -07:00
Amine KhaldiandGitHub 257ba70f89 CHIA-3217 Simplify SpendSim's farm_block (#19760)
Simplify SpendSim's farm_block.
2025-06-26 10:17:12 -07:00
Kyle AltendorfandGitHub 565c06fafd more more memoryview (#19763) 2025-06-26 10:16:40 -07:00
Kyle AltendorfandGitHub 25e240f456 log the route when an RPC API server handler fails (#19718) 2025-06-25 10:47:28 -07:00
60e4f85515 [CHIA-1314] Port pooling RPC endpoints to @marshal decorator (#19683)
* Port `pw_join_pool`

* fix tests

* fix moar tests

* Port `pw_self_pool`

* Fix test

* Port `pw_absorb_rewards`

* Port `pw_status`

* Simplifications.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-06-25 09:47:03 -07:00
Kyle AltendorfandGitHub 6e7fcf38d7 drop universal mypy ignore missing imports (#19750)
* drop universal mypy ignore missing imports

* delete nor comment out

* ignore our use of the private `_overlapped`

* type...

* on same line. go me
2025-06-25 09:46:40 -07:00
Kyle AltendorfandGitHub 1224006bc9 more memoryview (#19759) 2025-06-25 09:46:24 -07:00
Kyle AltendorfandGitHub f5fe748c19 less response failure error consumption (#19282) 2025-06-24 11:04:56 -07:00
760a65fd0b [CHIA-1313] Port NFT RPCs to @marshal decorator (#19617)
* Port `nft_mint_nft`

* Fix tests

* More test fixes

* Port `nft_count_nfts`

* Port `nft_list_nfts`

* Fix tests

* Port `nft_set_nft_did`

* Fix tests

* Port `nft_set_did_bulk`

* Port `nft_transfer_bulk`

* Port `nft_get_by_did`

* Port `nft_get_wallet_did`

* fix tests

* Fix one more test

* Okay actually fix the test

* Port `nft_get_wallets_with_dids`

* Port `nft_set_nft_status`

* Port `nft_transfer_nft`

* Use kwargs

* Forgot default raise

* Port `nft_get_info`

* Port `nft_add_uri`

* d

* Port `nft_calculate_royalties`

* Fix tests

* Port `nft_mint_bulk`

* Add test coverage for cmd line offering CAT by asset ID

* Add test coverage for a more complex offer take

* Add test coverage for `NFTCalculateRoyalties.__post_init__()

* test coverage generally

* Actually dont commit puzzle hashes when push=False

* Inadvertent test breakage

* Fix tests

* Fix tests

* Fix test

* Fix hopefully one more test

* Comments by @altendky

* small improvement @altendky

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

* small improvement @altendky

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-06-24 11:04:37 -07:00
Kyle AltendorfandGitHub e8624311c9 catchup: into long_lived/datalayer_merkle_blob from main @ da20e4145f (#19745)
Source hash: da20e4145f
Remaining commits: 0
2025-06-24 13:05:31 -04: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 da20e4145f update requests to 2.32.4 (#19728) 2025-06-23 13:33:56 -07:00
Amine KhaldiandGitHub 83a85b8942 CHIA-3173 Leverage CoinStore's new_block in SpendSim's farm_block instead of custom coin store manipulation (#19729)
Leverage CoinStore's new_block in SpendSim's farm_block instead of custom coin store manipulation.
2025-06-23 09:11:01 -07:00
Amine KhaldiandGitHub 6969867017 CHIA-3179 Optimize rolled back state construction in _reconsider_peak (#19734)
Optimize rolled back state construction in _reconsider_peak.
2025-06-23 09:10:42 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fb08c17937 build(deps): bump diff-cover from 9.3.1 to 9.3.2 (#19675)
Bumps [diff-cover](https://github.com/Bachmann1234/diff-cover) from 9.3.1 to 9.3.2.
- [Release notes](https://github.com/Bachmann1234/diff-cover/releases)
- [Changelog](https://github.com/Bachmann1234/diff_cover/blob/main/CHANGELOG)
- [Commits](https://github.com/Bachmann1234/diff-cover/compare/v9.3.1...v9.3.2)

---
updated-dependencies:
- dependency-name: diff-cover
  dependency-version: 9.3.2
  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>
2025-06-20 11:49:03 -07:00
Izumi HoshinoandGitHub b1564dcec8 Disabled conflict comments (#19731) 2025-06-20 09:09:53 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
be75d9ca6d build(deps): bump types-setuptools from 80.7.0.20250516 to 80.9.0.20250529 (#19679)
build(deps): bump types-setuptools

Bumps [types-setuptools](https://github.com/typeshed-internal/stub_uploader) from 80.7.0.20250516 to 80.9.0.20250529.
- [Commits](https://github.com/typeshed-internal/stub_uploader/commits)

---
updated-dependencies:
- dependency-name: types-setuptools
  dependency-version: 80.9.0.20250529
  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>
2025-06-20 08:50:37 -07:00
Arvid NorbergandGitHub deb1d2e6cd [CHIA-2859] add ConsensusMode in tests to cover the new hard fork (#19716)
* add ConsensusMode in tests to cover the new hard fork

* correctly compute the block cost when the new condition cost rules take effect
2025-06-20 08:50:19 -07: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
Richard KissandGitHub 1234bdd09c tach pre-commit (#19720)
* tach pre-commit

* Remove unused dependencies from `tach.toml`.
2025-06-20 08:49:50 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4b67d146b0 build(deps): bump typing-extensions from 4.13.2 to 4.14.0 (#19725)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.13.2 to 4.14.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.13.2...4.14.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-version: 4.14.0
  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>
2025-06-20 08:49:31 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
91211b4b0a build(deps): bump concurrent-log-handler from 0.9.25 to 0.9.28 (#19726)
Bumps [concurrent-log-handler](https://github.com/Preston-Landers/concurrent-log-handler) from 0.9.25 to 0.9.28.
- [Release notes](https://github.com/Preston-Landers/concurrent-log-handler/releases)
- [Changelog](https://github.com/Preston-Landers/concurrent-log-handler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Preston-Landers/concurrent-log-handler/compare/0.9.25...0.9.28)

---
updated-dependencies:
- dependency-name: concurrent-log-handler
  dependency-version: 0.9.28
  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>
2025-06-20 08:49:20 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4c0691c46e build(deps): bump coverage from 7.8.0 to 7.9.1 (#19727)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.8.0 to 7.9.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.8.0...7.9.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-version: 7.9.1
  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>
2025-06-20 08:49:12 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
32cf09b911 build(deps): bump miniupnpc from 2.3.2 to 2.3.3 (#19639)
Bumps [miniupnpc](https://github.com/miniupnp/miniupnp) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/miniupnp/miniupnp/releases)
- [Commits](https://github.com/miniupnp/miniupnp/commits)

---
updated-dependencies:
- dependency-name: miniupnpc
  dependency-version: 2.3.3
  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>
2025-06-17 11:55:20 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4600248f4a build(deps): bump pyinstaller from 6.13.0 to 6.14.1 (#19698)
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 6.13.0 to 6.14.1.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v6.13.0...v6.14.1)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-version: 6.14.1
  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>
2025-06-17 11:55:07 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33df9293df build(deps): bump types-aiofiles from 24.1.0.20250326 to 24.1.0.20250606 (#19699)
Bumps [types-aiofiles](https://github.com/typeshed-internal/stub_uploader) from 24.1.0.20250326 to 24.1.0.20250606.
- [Commits](https://github.com/typeshed-internal/stub_uploader/commits)

---
updated-dependencies:
- dependency-name: types-aiofiles
  dependency-version: 24.1.0.20250606
  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>
2025-06-17 11:54:52 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d267d09199 build(deps): bump boto3 from 1.38.23 to 1.38.34 (#19700)
Bumps [boto3](https://github.com/boto/boto3) from 1.38.23 to 1.38.34.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.38.23...1.38.34)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.38.34
  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>
2025-06-17 11:54:12 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fc97d94892 build(deps): bump brace-expansion from 1.1.11 to 1.1.12 in /build_scripts/npm_windows (#19704)
build(deps): bump brace-expansion in /build_scripts/npm_windows

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-17 11:54:00 -07:00
Richard KissandGitHub 3e30f67405 Refactor BlockHeightMap Creation to Decouple It from Blockchain (#19711)
Create `BlockHeightMap` outside of `Blockchain` so `chia.consensus`
doesn't have to depend on a specific storage mechanism.
2025-06-17 11:53:26 -07:00
Kyle AltendorfandGitHub 7c25640c3e remove 'or descriptor' from chia --passphrase-file help (#19722) 2025-06-17 11:52:33 -07:00
Richard KissandGitHub 14db91db6d Extract time lock validation and move to chia.consensus. (#19707)
Move `mempool_check_time_locks` to `chia.consensus` and rename to `check_time_locks`.
2025-06-16 14:33:26 -07:00
Amine KhaldiandGitHub 93e8a60ad4 CHIA-3107 Simplify test_basic_coin_store (#19709)
Simplify test_basic_coin_store.
2025-06-16 14:32:50 -07:00
Amine KhaldiandGitHub 635f4d1031 CHIA-3113 Simplify test_num_unspent (#19710)
Simplify test_num_unspent.
2025-06-16 14:32:16 -07:00
Kyle AltendorfandGitHub 32ca9c0804 by service not layer (#19715)
* by service not layer

* monkey patch fixup
2025-06-16 14:31:51 -07:00
Richard KissandGitHub 4f03890871 chia/full_node/signage_point.py -> chia/consensus/signage_point.py (#19706) 2025-06-12 11:14:27 -07:00
Richard KissandGitHub cbfd5a53a2 Move chia.consensus.fee_estimate_store to chia.full_node (#19705)
The `chia.protocols` module no longer depends upon `chia.full_node`
2025-06-12 11:13:53 -07:00
Amine KhaldiandGitHub ab61a0dc86 CHIA-3050 Extract _add_coin_records out of CoinStore and simplify it (#19686)
Turn CoinStore's _add_coin_records into a freeform add_coin_records_to_db.
2025-06-12 11:13:31 -07:00
Kyle AltendorfandGitHub 8a8443787f redact daemon websocket message logging (#19697)
* redact daemon websocket message logging

* add tests

* casefold the trigger as well

* redact mnemonic too
2025-06-12 11:13:10 -07:00
Kyle AltendorfandGitHub f054d339a1 unignore some ruff s rules (#19703) 2025-06-12 11:12:54 -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
Amine KhaldiandGitHub ceb635679c CHIA-3086 Simplify test_rollback (#19696)
Simplify test_rollback.
2025-06-11 08:39:00 -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
9289a05f12 New pos format (#19616)
* bump chia_rs

* update db_graftroot test

* refactor new pos format

* fix merge

* fix import

* fix missing param in test

* merge fixes/review fixes

* test prev_tx_block

* ermove double line

* # TODO: todo_v2_plots

* fix conftests monkeypatch

* fix spelling

* remove redundant merge code

* move prev_tx test

* add not impemented test to proof of space v2

* merge duplication fix

* fix typo, raise dont assert

* bump protocol, phase out test

* integer math

* add overflow case to test

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2025-06-10 11:27:17 -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
Amine KhaldiandGitHub 6db502c7d0 CHIA-3068 Avoid recomputing coin IDs in run_new_block_benchmark (#19691)
Avoid recomputing coin IDs in run_new_block_benchmark.
2025-06-09 10:09:32 -07:00
a11f3ca610 CA Cert updates (#19619)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2025-06-07 19:56:09 -07:00