Commit Graph
5861 Commits
Author SHA1 Message Date
Kyle Altendorf bd387f4a5a set then get on failure in DataStore.add_kvid() (#19380)
<!-- 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:

<!-- 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-03-12 16:24:01 -04:00
Kyle Altendorf 9905a9387a drop the unneeded autoincrement on the datalayer ids table (#19381)
<!-- 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:

<!-- 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-03-12 16:03:33 -04:00
Kyle Altendorf 757cf40345 drop the unneeded autoincrement on the datalayer ids table 2025-03-12 14:47:50 -04:00
Kyle Altendorf ceff18cb2c correct tooling bugs i made (#19370)
* Update task_timing.py

* Update analyze_memory_profile.py
2025-03-12 09:48:31 -07:00
Kyle Altendorf 4e0db617dc use .execute_insert() in DataStore.add_kvid() 2025-03-12 11:35:39 -04:00
Rigidity 4ae44855b1 Include removals in declare_proof_of_space (#19364) 2025-03-11 10:10:20 -07:00
wjblanke 9fb36ef51c remove coin cache (#19353) 2025-03-11 09:56:35 -07:00
Earle Lowe 92f922ea50 some cleanup of exception handling (#19304)
* some cleanup of exception handling

* typo
2025-03-10 10:39:52 -07:00
Arvid Norberg 6358bab4c3 [CHIA-2383] improve FF mempool eviction (#19355)
* evict FF spends from the mempool if they become invalid with a new peak

* optimize fast-forward rebase in mempool new_peak()

* clean up tests, also test reversing spent coins in new_peak()

* extend mempool invariant check in tests

* fix typo in comment
2025-03-07 17:44:40 -06:00
matt-o-howandArvid Norberg 92cd6eeb70 Add increment to skipped_items if we hit an Exception in mempool (#19286)
* add skip to exception

* fix test as last coin gets skipped

* Add skip to exception update (#19339)

* don't throw exception when skipping FF or Dedup coin in mempool

* skipping a dedup because of different solution is not an error

* correct logging and tests

* unit test skipping FF after 3 errors

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2025-03-07 17:44:30 -06:00
Florin Chirica 3a1f70a9b4 Add fallback for introducer. (#19333)
* Add fallback for introducer.

* Lint.

* Lint.

* Lint.

* Fix test.

* Add test.

* Lint.:
2025-03-07 08:10:27 -08:00
Kyle Altendorf 5c83bf9604 cleanup python/rust compatibility hints 2025-03-06 14:32:17 -05:00
Arvid Norberg 6707961abe [CHIA-2503] make the super set rule stricter (#19352)
* make the super set rule a stricter

* use BundleCoinSpend bools rather than the flags to determine whether a spend supports fast forward and dedup
2025-03-06 10:57:10 -08:00
Kyle Altendorf f1796ccb6a remove python merkle blob code 2025-03-06 13:17:39 -05:00
Kyle Altendorf 99fbfcf3eb datalayer: use rust 2025-03-05 16:45:56 -05:00
85c47c6649 catchup: into long_lived/datalayer_merkle_blob from main @ 329ce24c89 (#19351)
* update pin to chia-blockchain-gui (#19292)

* Update the anchor against the checkpoint.

* mypy annotation for `test_dos.py` (#19036)

* remove unused function, get_block_path()

* add type annotation to test_dos.py

* use chia_rs directly for foliage (#19308)

* use chia_rs directly for weight proof (#19315)

* 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>

* build(deps): bump mypy from 1.14.1 to 1.15.0 (#19319)

* build(deps): bump mypy from 1.14.1 to 1.15.0

Bumps [mypy](https://github.com/python/mypy) from 1.14.1 to 1.15.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.14.1...v1.15.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* adjust accordingly

* remove another

* and windows

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>

* build(deps): bump pyinstaller from 6.11.1 to 6.12.0 (#19318)

Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 6.11.1 to 6.12.0.
- [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.11.1...v6.12.0)

---
updated-dependencies:
- dependency-name: pyinstaller
  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>

* use chia_rs directly for sized bytes (#19326)

* build(deps): bump keyring from 25.5.0 to 25.6.0 (#19150)

Bumps [keyring](https://github.com/jaraco/keyring) from 25.5.0 to 25.6.0.
- [Release notes](https://github.com/jaraco/keyring/releases)
- [Changelog](https://github.com/jaraco/keyring/blob/main/NEWS.rst)
- [Commits](https://github.com/jaraco/keyring/compare/v25.5.0...v25.6.0)

---
updated-dependencies:
- dependency-name: keyring
  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>

* build(deps): bump filelock from 3.16.1 to 3.17.0 (#19164)

Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.16.1 to 3.17.0.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.16.1...3.17.0)

---
updated-dependencies:
- dependency-name: filelock
  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>

* build(deps): bump pre-commit from 4.0.1 to 4.1.0 (#19166)

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v4.0.1...v4.1.0)

---
updated-dependencies:
- dependency-name: pre-commit
  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>

* build(deps): bump types-setuptools from 75.6.0.20241126 to 75.8.0.20250225 (#19320)

build(deps): bump types-setuptools

Bumps [types-setuptools](https://github.com/python/typeshed) from 75.6.0.20241126 to 75.8.0.20250225.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-setuptools
  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>

* build(deps): bump boto3 from 1.35.90 to 1.37.1 (#19322)

Bumps [boto3](https://github.com/boto/boto3) from 1.35.90 to 1.37.1.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.35.90...1.37.1)

---
updated-dependencies:
- dependency-name: boto3
  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>

* use chia_rs directly for pool target (#19332)

* address issue introduced in #19207 (#19328)

address issue introduced in #19207 where empty transaction blocks would not have None transactions_block_generator

* CA Cert updates (#19312)

adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>

* bump chia_rs to 0.21.0 (#19337)

* bump chia_rs to 0.21.0

* update mempool tests with the new, stricter, rules

* use chia_rs directly for reward chain block (#19336)

* cache `get_unspent_lineage_info()` (#19335)

* no need to pass get_unspent_lineage_info_from_puzzle_hash function into create_bundle_from_mempool(), we already have it as a member now

* cache results from get_lineage_info_for_puzzle_hash()

* fix

* fixup

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: wjblanke <wjb98672@gmail.com>
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ChiaAutomation <automation@chia.net>
Co-authored-by: Zachary Brown <z.brown@chia.net>
2025-03-05 11:52:01 -05:00
Kyle Altendorf 2a53889d9c correct datalayer side value types (#19330) 2025-03-05 09:30:51 -05:00
Kyle Altendorf 5cf5d576a0 fix MerkleBlob.get_min_height_leaf() (#19340) 2025-03-05 09:30:37 -05:00
Kyle Altendorf 0eb2c76207 fixup 2025-03-04 17:12:27 -05:00
Kyle Altendorf 74c1e6deaa fix 2025-03-04 16:57:57 -05:00
Kyle Altendorf 7a6e9b3d12 Merge commit '329ce24c89e29f8c7f0d4a8bb4d04fc2b0438d95' into catchup/long_lived_datalayer_merkle_blob_from_main_329ce24c89e29f8c7f0d4a8bb4d04fc2b0438d95 2025-03-04 16:43:20 -05:00
Arvid Norberg a7a81a567f cache get_unspent_lineage_info() (#19335)
* no need to pass get_unspent_lineage_info_from_puzzle_hash function into create_bundle_from_mempool(), we already have it as a member now

* cache results from get_lineage_info_for_puzzle_hash()
2025-03-04 09:05:41 -08:00
Kyle Altendorf c57dea6512 use chia_rs directly for reward chain block (#19336) 2025-03-04 09:04:38 -08:00
Arvid Norberg 4d244bb103 bump chia_rs to 0.21.0 (#19337)
* bump chia_rs to 0.21.0

* update mempool tests with the new, stricter, rules
2025-03-04 09:03:51 -08:00
Arvid Norberg 9ba6c0407b address issue introduced in #19207 (#19328)
address issue introduced in #19207 where empty transaction blocks would not have None transactions_block_generator
2025-03-04 08:42:03 -06:00
Kyle Altendorf dd01af2c2b use chia_rs directly for pool target (#19332) 2025-03-03 09:34:02 -08:00
Kyle Altendorf d50b6e0883 use chia_rs directly for sized bytes (#19326) 2025-02-28 09:35:25 -08:00
dependabot[bot]andKyle Altendorf bc99c7a283 build(deps): bump mypy from 1.14.1 to 1.15.0 (#19319)
* build(deps): bump mypy from 1.14.1 to 1.15.0

Bumps [mypy](https://github.com/python/mypy) from 1.14.1 to 1.15.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.14.1...v1.15.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* adjust accordingly

* remove another

* and windows

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-02-28 09:32:34 -08:00
Kyle Altendorf 1567fa3df6 use chia_rs proof of inclusion for datalayer (#19327) 2025-02-27 14:19:38 -05: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 8611f3c399 tweak datalayer test consistency (#19325)
avoid depending on the order of the rpc call response
2025-02-26 13:22:29 -05:00
Kyle Altendorf 9075a50aeb use chia_rs directly for weight proof (#19315) 2025-02-26 09:27:27 -08:00
Kyle Altendorf c09d63ccb0 extract sibling hash and side methods as functions (#19324) 2025-02-26 10:52:21 -05:00
Kyle Altendorf 5c68281a81 more datalayer rust transition prep (#19306)
* more datalayer rust transition prep

* tidy
2025-02-26 07:57:50 -05:00
Kyle Altendorf fb6b78ef07 use chia_rs directly for foliage (#19308) 2025-02-25 11:33:25 -08:00
Arvid Norberg 45bac2e62d mypy annotation for test_dos.py (#19036)
* remove unused function, get_block_path()

* add type annotation to test_dos.py
2025-02-25 11:32:06 -08:00
Kyle Altendorf 419c6cf5f1 fixup 2025-02-25 11:40:04 -05:00
Kyle Altendorf b54c22faf0 Merge commit 'e446d6b726a03f6d917083b4d039abfec503e54e' into catchup/long_lived_datalayer_merkle_blob_from_main_e446d6b726a03f6d917083b4d039abfec503e54e 2025-02-25 11:30:14 -05:00
Kyle Altendorf c6d78c38fe use rust datalayer errors for consistency (#19307) 2025-02-25 08:47:09 -05:00
Kyle Altendorf 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
Kyle Altendorf 849eef1b0a remove ProofOfInclusion.as_program() (#19305) 2025-02-22 11:03:44 -05:00
Kyle Altendorf 30c4ef2689 use chia_rs directly for consensus constants (#19301) 2025-02-21 10:03:17 -08:00
Patrick Maslana 90f39c44a0 checkpoint: into main from release/2.5.2 @ 683d0ac289 (#19298)
Source hash: 683d0ac289
Remaining commits: 3
2025-02-20 11:33:52 -07:00
Matt Hauff ccfa35cab8 [CHIA-2369] Legacy-ify DAOs (#19266)
Legacy-ify DAOs
2025-02-20 11:05:30 -07:00
Amine Khaldi b22c4c839d CHIA-2320 Annotate test_full_node.py (#19226)
Annotate test_full_node.py.
2025-02-20 10:58:39 -07:00
Amine Khaldi d1a9b7ff52 Merge commit '683d0ac2897412b0f971857d7571d70742c7799d' into checkpoint/main_from_release_2.5.2_683d0ac2897412b0f971857d7571d70742c7799d 2025-02-20 15:13:56 +01:00
Matt Hauff caf1f09e69 [CHIA-1163] Port test_nft_offers.py to WalletTestFramework (#19265)
* Port `test_nft_offer_with_fee`

* Port `test_nft_offer_cancellations`

* Port `test_nft_offer_with_metadata_update`

* Port `test_nft_offer_nft_for_cat`

* Port `test_nft_offer_nft_for_nft`

* Port `test_nft_offer_nft0_and_xch_for_cat`
2025-02-20 06:13:26 -07:00
Amine Khaldi 5bfdb395e0 Merge commit 'de0b0d8c69247fe8c32fe95d541d2c163a7d37de' into checkpoint/main_from_release_2.5.2_de0b0d8c69247fe8c32fe95d541d2c163a7d37de 2025-02-19 19:55:50 +01:00
Kyle Altendorf a8724f0113 parametrize datalayer proof of inclusion for rust as well (#19281)
* parametrize datalayer proof of inclusion for rust as well

* rs fixup

* update chia_rs
2025-02-18 15:05:04 -05:00
wjblanke 683d0ac289 Syncstorewjb (#19284)
* check hash

* ruff

* missed one
2025-02-18 10:47:05 -07:00