Commit Graph
5861 Commits
Author SHA1 Message Date
Amine Khaldi 922892e2ec CHIA-1945 Avoid computing a transactions filter with just reward coins when the filter is not requested from get_block_header (#18969)
Avoid computing a transactions filter with just reward coins when the filter is not requested from get_block_header.
2024-12-19 10:33:54 -07:00
Arvid Norberg 6dfcd511fe add a feature to log spend bundles being added to the mempool (#19068) 2024-12-18 12:05:02 -07:00
Earle Lowe 8a56aa1bd4 ignore errors in daemon plotter process cleanup (#19025)
ignore errors in general cleanup
2024-12-18 12:01:41 -07:00
Amine Khaldi c6a6c0bbc3 CHIA-1862 Fix FullNodeAPI's request_block_headers returned filter (#18923)
Fix FullNodeAPI's request_block_headers returned filter.
2024-12-18 12:01:30 -07:00
Kyle Altendorf 6aa74cac0a Merge branch 'long_lived/datalayer_merkle_blob' into add_rs_merkle_blob 2024-12-18 11:58:35 -05:00
Kyle Altendorf 823f18643f Merge commit 'ccd6f13e6cc2f4c7a0a150a1e26117c50fcfbe82' into catchup/long_lived_datalayer_merkle_blob_from_main_ccd6f13e6cc2f4c7a0a150a1e26117c50fcfbe82 2024-12-18 11:57:02 -05:00
Kyle Altendorf 45465b4865 move some non-framework items out of chia.cmds.cmd_classes (#19047)
* move some non-framework items out of `chia.cmds.cmd_classes`

* move the other new stuff too
2024-12-17 14:14:13 -07:00
Matt HauffandKyle Altendorf 61207d2435 [CHIA-1348] Port chia wallet coin commands to @chia_command framework (#18641)
* Extract TransactionsIn/Out

* Create a helper for coin selection arguments

* Port `chia wallet coins list`

* Unused item

* Add TransactionEndpoint

* Port `chia wallet coins combine`

* Port `chia wallet coins split`

* Delete test_coins.py

* Add test for TXConfig helpers

* Add test for TransactionEndpoint mixin

* Forgot to delete old split command

* test coverage

* coverage ignores

* Link old framework with new

* fix command tests

* fix signer test

* coverage ignores

* pre-commit

* Move tests back to rpc file

* Move coin functions back to their own file

* Move split above combine in rpc tests

* Stop duplicate name definitions

* new puzzle hashes allowed

* Address comments by @altendky

* more comments by @altendky

* Update chia/cmds/cmd_classes.py

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

* another comment by @altendky

* this one is the fault of @altendky

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-12-17 10:44:33 -07:00
Kyle Altendorf 9c60a48de3 less DEFAULT_ROOT_PATH for get_any_service_client() (#19049) 2024-12-17 10:27:41 -07:00
dependabot[bot]andEarle Lowe 030392a68b build(deps): bump dnspython from 2.6.1 to 2.7.0 (#19017)
* build(deps): bump dnspython from 2.6.1 to 2.7.0

Bumps [dnspython](https://github.com/rthalley/dnspython) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/rthalley/dnspython/releases)
- [Changelog](https://github.com/rthalley/dnspython/blob/main/doc/whatsnew.rst)
- [Commits](https://github.com/rthalley/dnspython/compare/v2.6.1...v2.7.0)

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

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

* update seeder for mypy

---------

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>
2024-12-17 10:27:07 -07:00
Kyle Altendorf 78afe07f28 first pass at using @chia_command without a group (#19040)
* first pass at using `@chia_command` without a group

* less slots
2024-12-13 11:49:16 -07:00
Kyle Altendorf 85c23d4812 avoid set for test parametrization (#19039) 2024-12-13 11:42:11 -07:00
Kyle Altendorf bc5ad74c99 more less default root path (#19031)
* more less default root path

* hmm
2024-12-13 11:39:55 -07:00
Arvid NorbergandAmine Khaldi 1a1209c06a remove the block fill rate limit of 70% when farming a block (#19005)
* remove the block fill rate limit of 70% when farming a block

* Addendum to 100% block fill rate. (#19006)

* break down 'magic number' in test into its components

* Attempt to clarify why we add many aggsig conditions in make_and_send_big_cost_sb (#19026)

Attempt to clarify why we add many aggsig conditions in make_and_send_big_cost_sb.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-12-12 09:52:05 -07:00
Earle Lowe beff6e2aed CHIA-2022: Fix problems with startup timing and the Datalayer processing loop (#19014)
Catch some more exceptions when getting owned stores in DL loop
2024-12-12 09:51:50 -07:00
Almog De Paz 29826679a4 fix wrong param in prevalidate (#19035) 2024-12-12 09:15:28 -07:00
Earle Lowe 4db4cd9cc1 convert test_change_pools to WalletTestFramework (#18996)
* convert test_change_pools to WalletTestFramework

* add some checks that were in previous test version

* wait for wallet sync

* farm more blocks?
2024-12-12 09:07:12 -07:00
Arvid Norberg dd7dc85f5e revert super set rule (#19011)
revert https://github.com/Chia-Network/chia-blockchain/pull/18834
2024-12-12 09:02:23 -07:00
Matt Hauff be0a77db7d [CHIA-1316] Port VC Endpoints to @marshal decorator (#18970)
* Port `vc_mint`

* Port `vc_spend`

* Port `vc_revoke`

* Port `vc_get`

* Port `vc_get_list`

* Port `vc_add_proofs`

* Port `vc_get_proofs_for_root`

* address comments by @altendky
2024-12-12 09:01:29 -07:00
Almog De Paz 3ab83f0eeb use height to hash in short sync (#19007)
* use height to hash in short sync

* remove added debug code

* refactor condition
2024-12-11 10:05:27 -07:00
Almog De PazandKyle Altendorf f6e08ba7e4 Track weight proof tasks (#18896)
* keep track of wp tasks

* use cancel_task_safe

* await at shutdown

* await when done

* Update chia/full_node/full_node.py

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-12-11 09:16:24 -07:00
Arvid Norberg c4e714eeab [CHIA-1829] don't drop outgoing response messages (#18990)
never rate limit outgoing response messages (RespondBlock, RespondBlocks, RejectBlock, RejectBlocks). Instead, disconnect any peer sending unsolicited response blocks
2024-12-11 09:09:09 -07:00
Kyle Altendorf c85cadd368 Merge commit '214ecf79dbaac1e983f854e8c85880f8ccb65a21' into catchup/long_lived_datalayer_merkle_blob_from_main_214ecf79dbaac1e983f854e8c85880f8ccb65a21 2024-12-11 08:17:44 -05:00
Kyle Altendorf 1fae5b09dc Merge branch 'main' into add_rs_merkle_blob 2024-12-11 08:16:37 -05:00
Arvid Norberg bc065b5d52 add some validation of fork_info in Blockchain.add_block() (#18981)
* add some validation of fork_info in Blockchain.add_block(). This would have caught the bug introduced in main a while ago

* simplify add_blocks_in_batches
2024-12-10 10:30:43 -07:00
Kyle Altendorf e704b355fe Optimize add node hashes. (#18980)
<!-- 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) -->
2024-12-10 08:58:04 -05:00
Almog De Paz 35c83753aa Unconfirmed tx cache - CHIA-785 (#18422)
* unconfirmed_tx_cache

* fix types in test

* fix already included check
2024-12-10 06:38:53 -07:00
Amine Khaldi 9063e29810 CHIA-2020 Simplify add_block_batch (#19004)
Simplify add_block_batch.

1. No need to accept AugmentedBlockchain and reconstruct it again.
2. No need to return both success and an unused optional error.
2024-12-10 06:38:37 -07:00
Patrick Maslana 465f56ea6b checkpoint: into main from release/2.5.0 @ f9b7ddcfcf (#18995)
Source hash: f9b7ddcfcf
Remaining commits: 0
2024-12-06 20:45:16 -07:00
李绪熙 7874816bb9 chore: fix 404 status URL (#18952) 2024-12-06 11:31:45 -07:00
Amine Khaldi 68f230a729 Merge commit 'f9b7ddcfcf50b8a0cf7a39a9c9f5f53214702319' into checkpoint/main_from_release_2.5.0_f9b7ddcfcf50b8a0cf7a39a9c9f5f53214702319 2024-12-06 17:48:45 +01:00
dependabot[bot]andEarle Lowe 005d656672 build(deps): bump mypy from 1.11.1 to 1.13.0 (#18978)
* build(deps): bump mypy from 1.11.1 to 1.13.0

Bumps [mypy](https://github.com/python/mypy) from 1.11.1 to 1.13.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.11.1...v1.13.0)

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

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

* Add some none checks for mypy happiness

---------

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>
2024-12-06 09:04:07 -07:00
Arvid Norberg f9b7ddcfcf [CHIA-1976] bump chia_rs to 0.16.0 and introduce soft-fork6 (#18988)
* bump chia_rs to 0.16.0 and introduce soft-fork6

* add test for keccak256 operator
2024-12-05 16:43:49 -07:00
Kyle Altendorf 2ec6b4ac7c no more python -m chia.cmds.init (#18983) 2024-12-05 15:40:08 -07:00
Earle Lowe c59eeec526 backport Remove 3.8 from release (#18989)
* backport Remove 3.8 from release

* remove 3.8 from pyproject.toml as well

* black fix

* go back to the check for 7 which is wrong, but wrong in a consistent way for main
2024-12-05 09:12:24 -07:00
Florin Chirica 6c3285f55f Indent properly. 2024-12-05 03:09:44 +02:00
Florin Chirica fa3b2f3adb Update data_store.py 2024-12-05 01:40:03 +02:00
Florin ChiricaandKyle Altendorf e52d27ece4 Apply suggestions from code review
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-12-05 01:38:51 +02:00
Kyle Altendorf e03042cdb1 less DEFAULT_ROOT_PATH for rpc commands (#18984) 2024-12-04 14:59:44 -07:00
Kyle Altendorf 65dc231332 less DEFAULT_ROOT_PATH for farm commands (#18982) 2024-12-04 14:58:29 -07:00
Kyle Altendorf 0e7dc95d8f less DEFAULT_ROOT_PATH for base chia command (#18985) 2024-12-04 14:57:59 -07:00
dependabot[bot]andEarle Lowe d673e54458 build(deps): bump watchdog from 4.0.1 to 6.0.0 (#18945)
* build(deps): bump watchdog from 4.0.1 to 6.0.0

Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 4.0.1 to 6.0.0.
- [Release notes](https://github.com/gorakhargosh/watchdog/releases)
- [Changelog](https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst)
- [Commits](https://github.com/gorakhargosh/watchdog/compare/v4.0.1...v6.0.0)

---
updated-dependencies:
- dependency-name: watchdog
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* Fix up ignores and hints for new watchdog version

---------

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>
2024-12-04 12:38:52 -07:00
Matt Hauff 0cda424fc2 [CHIA-1934] Remove get_new_* from DIDWallet (#18968)
* remove `get_new_*` from `DIDWallet`

* remove `get_puzzle` entirely
2024-12-04 11:21:14 -07:00
Matt Hauff 215327a6f7 [CHIA-1933] Remove get_new methods from CATWallet (#18965)
* Remove `get_new` methods from cat wallet

* Fix an instance in `tails.py`

* Fix an instance in `tails.py`

* Fix `test_dao_wallets.py`

* Test coverage
2024-12-04 11:20:57 -07:00
Matt Hauff 40614d5bed [CHIA-1659] Delete unnecessary TODO in auto_claim_coins (#18957)
Delete unnecessary `TODO` in `auto_claim_coins`
2024-12-04 11:18:28 -07:00
Matt Hauff 197ea79f48 [CHIA-1787] Add ergonomic message condition drivers (#18931)
* Add ergonomic message condition drivers

* Add test coverage (and fix some bugs!)
2024-12-04 11:17:38 -07:00
Almog De PazandArvid Norberg fe9eb677a0 fix short_sync_backtrack (#18951)
* fix short_sync_backtrack

* add test for a 1-block reorg in short_sync_backtrack() (#18966)

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2024-12-04 09:50:44 -07:00
29d2eedd3c build(deps): bump ruff from 0.7.1 to 0.8.1 (#18973)
* build(deps): bump ruff from 0.7.1 to 0.8.1

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.1 to 0.8.1.
- [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.7.1...0.8.1)

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

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

* Fix ruff issues

* >-

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matt <quexington@gmail.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-12-04 08:59:18 -07:00
Florin Chirica 7572044a1d Lint. 2024-12-04 03:41:02 +02:00
Florin Chirica 4a3ba52d26 Lint. 2024-12-04 03:39:12 +02:00