Commit Graph
14659 Commits
Author SHA1 Message Date
Earle LoweandGitHub 7c01e3c483 CHIA-1730: port chia plotnft to @chia_commands framework (#18833)
* chia plotnft CLI improvements

* use CliRpcConnectionError

* add check to show

* fix typo

* Update plotnft CLI to newer framework

* Fix help cut-paste error

* add test using new framework

* some minor fixes

* use click.Choice for pool/local option

* some click options

* Some more plotnft cli tests

* drop test_pool_cmdline from mypy-exclusions

* mypy fixes

* several fixes

* Add leave test

* join tests

* more join tests

* missing await

* Try setting config

* use root_path from NeedsWalletRPC

* linting

* Some cleanup

* Add claim tests

* Improved tests

* refactor some test code

* Add inspect tests

* Skip bad test for now

* Add in change payout tests

* quoting error

* Add test for get_login_link

* Add in a few negative tests for join

* Few more tests

* Experment with clirunner env overrides

* put back chia_root into context dict

* Some cleanup and one more test

* maybe final test

* some updates

* some dedup and reorg of test code

* run trusted and untrusted paramertization

* make reuse puzhash stuff work

* Add in required mock object for test_update_pool_config_new_config

* rearrange code per review comment - limit use of NeedsWalletRPC to chia_command

* Add in plotnft click parsing tests

* added ability to pass in obj to runner invoke

* Add in some more test cases

* fix up create issues with config

* Add in couple more test cases for error conditions

* Minor code cleanup

* Use long options for readability, minor code cleanup

* Use config file for farmer rpc port

* simplify code

* Add testing for prompt cases

* Add mocking for default_root_path

* context cleanup

* temp debugging output

* patch the proper object

* move some wallet fixtures into top level conftest and remove conftest import

* merge to origin/main
2024-12-03 12:33:52 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
64586631d0 build(deps): bump lxml from 5.2.2 to 5.3.0 (#18599)
Bumps [lxml](https://github.com/lxml/lxml) from 5.2.2 to 5.3.0.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-5.2.2...lxml-5.3.0)

---
updated-dependencies:
- dependency-name: lxml
  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>
2024-12-03 12:33:20 -07:00
Kyle AltendorfandGitHub 9cebffdbdb actionlint without VALIDATE_GITHUB_ACTIONS: true (#18962)
* `VALIDATE_GITHUB_ACTIONS: true`

* fixups

* there

* and the config...

* wrong way, back again

* shellcheck

* tweak

* wrong place

* see ya super-linter

* Revert "wrong place"

This reverts commit 478fde7b2e.

* -shellcheck

* reintroduce actionlint/shellcheck issue to show failure

* Revert "reintroduce actionlint/shellcheck issue to show failure"

This reverts commit 24b034522f.

* blech
2024-12-03 10:30:20 -07:00
Matt HauffandGitHub 8dd76e5d1c [CHIA-1731] Add comments about PLR6201 (#18963)
* Add comments about PLR6201

* Change comment

* Change comment
2024-12-03 09:45:57 -07:00
Kyle AltendorfandGitHub 2fe179c975 use poetry 1.8.3 (#18960) 2024-12-03 09:22:07 -07:00
Arvid NorbergandGitHub df52ee6a57 add in_main_chain=1 to the SQL query, that just asks for heights (#18932)
extend unit test for BlockStore and add in_main_chain=1 to the SQL query, that just asks for heights
2024-12-03 09:21:29 -07:00
Arvid NorbergandGitHub 98f7f8824c add new configuration option to log the first 6 hex digits of coins (#18893)
add new configuration option to log the first 6 hex digits of all coins added, removed and reorged (off by default)
2024-12-03 08:50:38 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9b7bb5b36d build(deps): bump peter-evans/create-pull-request from 6 to 7 (#18553)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6 to 7.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v7)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03 08:50:23 -07:00
Chris MarslenderandGitHub ac45a37bd9 Add simulator to installers (#18964)
* Add start simulator to installers

* Point to correct path for start_simulator
2024-12-02 22:18:26 -06:00
Kyle AltendorfandGitHub cf49d9c198 remove implementation from BlockRecordProtocol.is_transaction_block() (#18948) 2024-12-02 14:51:12 -07:00
Kyle AltendorfandGitHub 3a54c5de53 remove dangling pylint comment reference (#18937) 2024-12-02 14:50:29 -07:00
Kyle AltendorfandGitHub 3bfb4da50f explicitly set option parameter name based on field name for cmd classes (#18926) 2024-12-02 14:50:17 -07:00
Almog De PazandGitHub 61703ce09a fix trusted wallet sync on deep reorg (#18831)
* fix trusted wallet sync on deep reorg

* handle long sync exception case in finish sync

* fix_wallet_sync_test

* fix test_long_sync_wallet

* reconnect only untrusted node in test

* fix long_sync test, update only on finish_sync()

* revert add_blocks_in_batches

* types

* fix  flakey test_long_reorg_nodes_and_wallet
2024-12-02 11:22:55 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
a33f40228d build(deps): bump github/super-linter from 6 to 7 (#18552)
Bumps [github/super-linter](https://github.com/github/super-linter) from 6 to 7.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/super-linter/compare/v6...v7)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 11:22:27 -07:00
Kyle AltendorfandGitHub b93f300181 use the lock file for pinning dependencies, not the project definition (#18305)
* use the lock file for pinning dependencies, not the project definition

* fixup

* `>=`

* trying v4.3.3

* undo

* undo

* rebase-strategy: auto

* Revert "rebase-strategy: auto"

This reverts commit 659eb4d043.

* Revert "Revert "rebase-strategy: auto""

This reverts commit bf8a5ff524.

* Revert "Revert "Revert "rebase-strategy: auto"""

This reverts commit 49e7d19a8d.
2024-12-02 11:21:44 -07:00
Kyle Altendorf 9d790abd78 Merge commit 'e5bf80e29f60dc507875b4742c50aa3d19364313' into catchup/long_lived_datalayer_merkle_blob_from_main_e5bf80e29f60dc507875b4742c50aa3d19364313 2024-12-02 12:15:35 -05:00
Kyle AltendorfandGitHub 9e6f75d927 Optimize DL query. (#18949)
Make query use the table primary key, optimizing the runtime
significantly.
2024-11-29 13:55:17 -05:00
Florin ChiricaandGitHub c8a95748d8 Optimize deepcopy use 2024-11-28 04:40:45 +02:00
Florin Chirica 8b659b6829 Lint. 2024-11-28 03:10:30 +02:00
Florin Chirica d061c4ca73 Optimize DL query. 2024-11-28 03:04:19 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
e5bf80e29f build(deps): bump importlib-resources from 6.4.0 to 6.4.5 (#18942)
Bumps [importlib-resources](https://github.com/python/importlib_resources) from 6.4.0 to 6.4.5.
- [Release notes](https://github.com/python/importlib_resources/releases)
- [Changelog](https://github.com/python/importlib_resources/blob/main/NEWS.rst)
- [Commits](https://github.com/python/importlib_resources/compare/v6.4.0...v6.4.5)

---
updated-dependencies:
- dependency-name: importlib-resources
  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>
2024-11-27 11:17:21 -07:00
Kyle AltendorfandGitHub 4ea37f2a1c **/*.lock linguist-generated=false (#18939) 2024-11-27 09:18:14 -07:00
Kyle AltendorfandGitHub aeea85f336 Fix DL migration (#18915)
<!-- 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-11-26 17:37:27 -05:00
Kyle AltendorfandGitHub 8f5c6bf71e Fix DL index (#18933)
<!-- 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-11-26 17:34:14 -05:00
Kyle AltendorfandGitHub 825cd4c18b Optimize DL benchmark. (#18906)
<!-- 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-11-26 17:34:03 -05:00
Kyle AltendorfandGitHub bcf5a6580f squash emoji-suppressing typo (#18911) 2024-11-26 14:22:09 -07:00
Kyle AltendorfandGitHub 7fe2373b16 show cli defaults by default (#18927) 2024-11-26 11:59:46 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
252c54eca9 build(deps): bump types-pyyaml from 6.0.12.20240311 to 6.0.12.20240917 (#18597)
Bumps [types-pyyaml](https://github.com/python/typeshed) from 6.0.12.20240311 to 6.0.12.20240917.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-pyyaml
  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>
2024-11-26 11:59:31 -07:00
Arvid NorbergandGitHub 57048e318f [CHIA-1830] in deep-reorg tests, ensure the resulting coin set is correct (#18925)
in deep-reorg tests, ensure the resulting coin set is correct
2024-11-26 10:49:15 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
f7897a6239 build(deps): bump typing-extensions from 4.11.0 to 4.12.2 (#18322)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.11.0 to 4.12.2.
- [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.11.0...4.12.2)

---
updated-dependencies:
- dependency-name: typing-extensions
  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>
2024-11-25 19:50:04 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0516e83628 build(deps): bump types-aiofiles from 23.2.0.20240311 to 24.1.0.20240626 (#18321)
Bumps [types-aiofiles](https://github.com/python/typeshed) from 23.2.0.20240311 to 24.1.0.20240626.
- [Commits](https://github.com/python/typeshed/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-25 11:22:52 -07:00
Florin Chirica 50b4bf4d0c Fix DL index. 2024-11-25 19:14:38 +02:00
Kyle Altendorf a1b908ee12 Merge branch 'main' into add_rs_merkle_blob 2024-11-25 09:52:41 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dfaf70895a build(deps): bump types-setuptools from 70.0.0.20240524 to 75.5.0.20241122 (#18924)
build(deps): bump types-setuptools

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

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-22 13:05:42 -08:00
Matt HauffandGitHub 9755c46dec [CHIA-1773] Add better reuse_puzhash checking to WalletTestFramework (#18897)
* Add better reuse_puzhash checking to WalletTestFramework

* Do more sophisticated monkeypatching

* Fix `test_did_find_lost_did`

* Add ability to ignore reuse_puzhash enforcement

* Actually fix `test_did_find_lost_did`

* Fix `test_nft_with_did_wallet_creation`

* Fix `test_split_coins`

* Fix `test_did_attest_after_recovery`
2024-11-22 13:05:29 -08:00
Kyle AltendorfandGitHub 30a83ce791 adjust cmd class help parameters (#18921) 2024-11-22 10:50:55 -08:00
Chris MarslenderandGitHub db2ddfe7ba Update systemd templates to check if RPCs are up by using the chia rpc commands instead of nc (#18920) 2024-11-22 08:57:45 -07:00
Amine KhaldiandGitHub cdd3ed24bf CHIA-1849 Evict related BLS cache entries on new peak (#18912)
Evict related BLS cache entries on new peak.
2024-11-22 08:57:33 -07:00
Kyle AltendorfandGitHub 24e3644a43 skip simulator terminates on signal test for now (#18918) 2024-11-21 15:03:16 -07:00
Kyle AltendorfandGitHub d1596d4386 enable flake8-tidy-imports (#18913) 2024-11-21 14:57:15 -07:00
Arvid NorbergandGitHub e17e65707d improve logging of rate limits (#18907)
* improve logging of rate limits

* fix rate limiting of logs
2024-11-21 14:56:59 -07:00
Kyle AltendorfandGitHub 29da4a3b57 put None at the end in Unions - incoming RUF036 (#18905) 2024-11-21 14:56:39 -07:00
Kyle AltendorfandGitHub ad8bac359a more use of RpcClient.create_as_context() (#18903) 2024-11-21 14:56:17 -07:00
Arvid NorbergandGitHub f2ef329cd3 improve sync timeouts by being more conservative the fewer peers we have (#18894) 2024-11-21 14:55:46 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0073f2bd65 build(deps): bump setuptools from 75.1.0 to 75.5.0 (#18872)
Bumps [setuptools](https://github.com/pypa/setuptools) from 75.1.0 to 75.5.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v75.1.0...v75.5.0)

---
updated-dependencies:
- dependency-name: 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>
2024-11-21 14:55:25 -07:00
Kyle AltendorfandGitHub 19a7d048c0 less set (#18871)
* less set

* change them all...

* hum

* better

* more
2024-11-21 14:55:16 -07:00
Kyle AltendorfandGitHub d006635d04 catchup: into long_lived/datalayer_merkle_blob from main @ 748c8cec8e (#18889)
Source hash: 748c8cec8e
Remaining commits: 0
2024-11-21 16:35:21 -05:00
Florin Chirica 5ed56c0b5c Disable foreign keys while migrating. 2024-11-21 00:27:16 +02:00
Florin Chirica eda617bd71 Lint. 2024-11-20 22:07:52 +02:00
Florin Chirica 55cae838de Use custom exception. 2024-11-20 22:01:29 +02:00