Commit Graph
13728 Commits
Author SHA1 Message Date
Matt HauffandKyle Altendorf 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 Altendorf da20e4145f update requests to 2.32.4 (#19728) 2025-06-23 13:33:56 -07:00
Amine Khaldi 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 Khaldi 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] 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 Hoshino b1564dcec8 Disabled conflict comments (#19731) 2025-06-20 09:09:53 -07:00
dependabot[bot] 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 Norberg 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 Hauff 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 Kiss 1234bdd09c tach pre-commit (#19720)
* tach pre-commit

* Remove unused dependencies from `tach.toml`.
2025-06-20 08:49:50 -07:00
dependabot[bot] 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] 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] 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] 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] 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] 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] 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] 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 Kiss 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 Altendorf 7c25640c3e remove 'or descriptor' from chia --passphrase-file help (#19722) 2025-06-17 11:52:33 -07:00
Richard Kiss 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 Khaldi 93e8a60ad4 CHIA-3107 Simplify test_basic_coin_store (#19709)
Simplify test_basic_coin_store.
2025-06-16 14:32:50 -07:00
Amine Khaldi 635f4d1031 CHIA-3113 Simplify test_num_unspent (#19710)
Simplify test_num_unspent.
2025-06-16 14:32:16 -07:00
Kyle Altendorf 32ca9c0804 by service not layer (#19715)
* by service not layer

* monkey patch fixup
2025-06-16 14:31:51 -07:00
Richard Kiss 4f03890871 chia/full_node/signage_point.py -> chia/consensus/signage_point.py (#19706) 2025-06-12 11:14:27 -07:00
Richard Kiss 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 Khaldi 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 Altendorf 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 Altendorf f054d339a1 unignore some ruff s rules (#19703) 2025-06-12 11:12:54 -07:00
Amine Khaldi ceb635679c CHIA-3086 Simplify test_rollback (#19696)
Simplify test_rollback.
2025-06-11 08:39:00 -07:00
Matt HauffandKyle Altendorf 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
Almog De PazandArvid Norberg 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
Amine Khaldi 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
github-actions[bot]andChiaAutomation a11f3ca610 CA Cert updates (#19619)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2025-06-07 19:56:09 -07:00
earl 0464d69308 Also log the VDF field being compacted (#19663) 2025-06-07 19:55:15 -07:00
StarttoasterandEarle Lowe 21872f2bec checkpoint: into main from release/2.5.4 @ 813370b49e (#19690)
Update CHANGELOG for 2.5.4 (#19635)

* Update CHANGELOG for 2.5.4

* fix typo

Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
2025-06-07 19:54:22 -07:00
Amine Khaldi d52a1a6d2b Merge commit '813370b49eab16d614ca3fc2062acc114a3944e3' into checkpoint/main_from_release_2.5.4_813370b49eab16d614ca3fc2062acc114a3944e3 2025-06-06 11:57:26 +01:00
Almog De Paz a50f2c3c8e Bump chia rs >=0.25, <0.26 (#19685)
* bump_chia_rs

* update to use size()

* lint

* remove redundant imports
2025-06-05 15:07:08 -07:00
Richard Kiss 3a0efbd463 fix(full_node): use f-string for log message when adding blocks (#19681)
Fix a typo I introduced in prior PR.
2025-06-05 15:06:44 -07:00
StarttoasterandArvid Norberg 082f0592d8 checkpoint: into main from release/2.5.4 @ 27bfa7e2a3 (#19680)
reject transactions from the mempool, that take too long to validate (#19611)

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2025-06-05 09:21:46 -07:00
Amine Khaldi cc00bf55bd CHIA-2989 Insert DB values in CoinStore's new_block without creating coin records for them (#19662)
Insert DB values in CoinStore's new_block without creating coin records for them.
2025-06-05 09:21:13 -07:00
Matt Hauff f57dfc02c9 [CHIA-2911] fix test_db_graftroot after chia_rs update (#19668)
fix `test_db_graftroot` after chia_rs update
2025-06-05 09:20:59 -07:00
Kyle AltendorfandEarle Lowe f3ba638e3a update windows build to windows-2022 (#19670)
* update windows build to windows-2022

https://github.com/Chia-Network/chia-blockchain/actions/runs/15418837197/job/43391307150?pr=19667 
> This is a scheduled Windows Server 2019 brownout. The Windows Server 2019 image will be removed on 2025-06-30. For more details, see https://github.com/actions/runner-images/issues/12045

* Update build-windows-installer.yml

* Update build-windows-installer.yml

* Locating editbin

* Update path to editbin

---------

Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
2025-06-05 09:20:46 -07:00
Amine Khaldi 242ef4f5a1 CHIA-3031 Leverage execute_fetchall in CoinStore's rollback_to_block (#19682)
Leverage execute_fetchall in CoinStore's rollback_to_block.
2025-06-05 09:20:33 -07:00
Amine Khaldi b0242ee94d Merge commit '27bfa7e2a31af5736c84ecadf7954adc18eb086c' into checkpoint/main_from_release_2.5.4_27bfa7e2a31af5736c84ecadf7954adc18eb086c 2025-06-03 22:20:48 +01:00
Matt Hauff f1885d6f92 [CHIA-2947] Actually don't commit puzzle hashes when push=False (#19647)
* Actually dont commit puzzle hashes when push=False

* Fix tests

* Fix tests

* Fix test
2025-06-03 12:32:53 -07:00
Amine Khaldi 4994b4515a CHIA-2979 Simplify test_set_spent (#19655)
Simplify test_set_spent.
2025-06-03 12:31:55 -07:00
Richard Kiss 15a4536a7a The chia.consensus module no longer depends upon chia.wallet. (#19665)
<!-- 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:

This PR removes a dependency that is inappropriate and caused a
dependency loop.
2025-06-03 12:31:30 -07:00
Starttoaster 28ca7dce81 checkpoint: into main from release/2.5.4 @ e53cb263f7 (#19666)
Source hash: e53cb263f7
Remaining commits: 2
2025-06-03 12:29:18 -07:00
Amine Khaldi d6590bd18f Merge commit 'e53cb263f702addef26dc497893f464840b9fcc3' into checkpoint/main_from_release_2.5.4_e53cb263f702addef26dc497893f464840b9fcc3 2025-06-02 19:42:56 +01:00