Commit Graph

12032 Commits

Author SHA1 Message Date
dependabot[bot]
9c33f8c141
build(deps-dev): bump pyinstaller from 5.13.0 to 6.3.0 (#17051)
* build(deps-dev): bump pyinstaller from 5.13.0 to 6.3.0

Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 5.13.0 to 6.3.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/v5.13.0...v6.3.0)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* uses module paths instead of filesystem paths for pyinstaller data targets

* Revert "uses module paths instead of filesystem paths for pyinstaller data targets"

This reverts commit 279f81193a.

* remove hack

* tidy

---------

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>
2024-01-04 10:18:25 -08:00
dependabot[bot]
14160b17cc
build(deps): bump actions/upload-artifact from 3 to 4 (#17096)
* build(deps): bump actions/download-artifact from 3 to 4

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* build(deps): bump actions/upload-artifact from 3 to 4

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* fixup

* install action too

* pattern not name

---------

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>
2024-01-04 10:18:10 -08:00
dependabot[bot]
5f48037626
build(deps): bump github/codeql-action from 2 to 3 (#17097)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  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-01-04 10:17:53 -08:00
dependabot[bot]
7080d464da
build(deps): bump typing-extensions from 4.8.0 to 4.9.0 (#17099)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.8.0 to 4.9.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.8.0...4.9.0)

---
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-01-04 10:17:44 -08:00
dependabot[bot]
31d175c2b1
build(deps-dev): bump pylint from 3.0.2 to 3.0.3 (#17100)
Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](https://github.com/pylint-dev/pylint/compare/v3.0.2...v3.0.3)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  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-01-04 10:17:29 -08:00
dependabot[bot]
c448bff3ce
build(deps-dev): bump black from 23.11.0 to 23.12.1 (#17169)
Bumps [black](https://github.com/psf/black) from 23.11.0 to 23.12.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.11.0...23.12.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  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-01-04 10:17:14 -08:00
dependabot[bot]
4ef4111db4
build(deps): bump boto3 from 1.34.0 to 1.34.11 (#17193)
Bumps [boto3](https://github.com/boto/boto3) from 1.34.0 to 1.34.11.
- [Release notes](https://github.com/boto/boto3/releases)
- [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/boto/boto3/compare/1.34.0...1.34.11)

---
updated-dependencies:
- dependency-name: boto3
  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-01-04 10:17:01 -08:00
Amine Khaldi
6d9f77ca1f
Annotate test_offer_lifecycle.py (#17149)
Annotate test_offer_lifecycle.py.
2024-01-04 10:15:58 -08:00
StartToaster
a9e0d11438
cherry-pick: into main RPC marshaller (#17201)
Recreates #16865 targeting main
2024-01-04 10:15:20 -08:00
StartToaster
2b19a48470
checkpoint: into main from release/2.1.4 @ 21e7e8d8fe (#17204)
Source hash: 21e7e8d8fe
Remaining commits: 0
2024-01-04 10:14:21 -08:00
Amine Khaldi
72abf2f30b
Annotate test_nft_wallet.py (#17210)
Annotate test_nft_wallet.py.
2024-01-04 10:13:51 -08:00
Amine Khaldi
f113aa4359
Annotate did_wallet_puzzles.py (#17153)
Annotate did_wallet_puzzles.py.
2024-01-03 12:59:32 -08:00
Amine Khaldi
eb17963b31
Remove no longer needed TestCATWallet class (#17188)
Remove no longer needed TestCATWallet class.
2024-01-03 12:53:42 -08:00
Amine Khaldi
6e0c7d35bc
Merge commit '21e7e8d8fee52c5c64ba4818029a2ab2e86383a3' into checkpoint/main_from_release_2.1.4_21e7e8d8fee52c5c64ba4818029a2ab2e86383a3 2024-01-03 21:39:24 +01:00
Earle Lowe
21e7e8d8fe
Update chia_rs to 0.2.15 for AMD K10 fix (#17197)
* Update chia_rs to 0.2.15 for AMD K10 fix

* increase NFT timeout for test_nft_wallet_creation_and_transfer

* increase NFT timeout for test_nft_wallet_creation_and_transfer

* Set timeout back to 30s
2024-01-03 12:37:19 -08:00
Amine Khaldi
03d927b36b
No need to return None in dl_track_new and dl_stop_tracking (#17145)
No need to return None in dl_track_new and dl_stop_tracking.
2024-01-03 12:25:19 -08:00
Amine Khaldi
1bc5e0039a
Remove leftover None prints in test_trade_bad_spend (#17147)
Remove leftover None prints in test_trade_bad_spend.
2024-01-03 12:24:45 -08:00
Amine Khaldi
d317b47575
Simplify get_new_did_innerpuz (#17148)
Simplify get_new_did_innerpuz.
2024-01-03 12:23:55 -08:00
Amine Khaldi
6d1898ce12
Remove DID wallet's get_frozen_amount (#17151)
Remove DID wallet's get_frozen_amount.

It's not referenced anywhere, and it relies on get_frozen_balance from WSM which doesn't exist.
2024-01-03 12:22:39 -08:00
Amine Khaldi
456d98b22c
Remove debug prints from DID's test_creation_from_coin_spend and test_create_did_with_recovery_list (#17152)
Remove debug prints from DID's test_creation_from_coin_spend and test_create_did_with_recovery_list.
2024-01-03 12:22:04 -08:00
Amine Khaldi
0af602fe95
Remove no longer needed TestOfferLifecycle class (#17189)
Remove no longer needed TestOfferLifecycle class.
2024-01-03 12:21:03 -08:00
Amine Khaldi
59f30d196b
Use self_hostname fixture in test_nft_bulk_transfer (#17191)
Use self_hostname fixture in test_nft_bulk_transfer.
2024-01-03 12:19:37 -08:00
Abachrombie
f726905f3b
FIXED: Fixed old links that just linked to links, to the new direct links in… (#17185)
Fixed old links that just linked to links, to the new direct links in Chia Docs
2024-01-03 11:19:16 -08:00
Matt Hauff
abe5c99d4f
Add a marshaller for RPC APIs (#16865)
The handling of RPC requests and responses is pretty scattered and prone
to error right now. This change proposes a way to specify concrete types
for both the request and response of an RPC and have the parsing of
dictionaries occur auto-magically due to a decorator. Something similar
exists for data layer RPCs but this proposal tries to focus heavily on
the ergonomics of writing a new API and therefore handles more behavior
behind the scenes and leans on the `Streamable` library for the business
logic.

Writing a new RPC should now look like this:
```
<in some other file probably>
@streamable
@dataclass(frozen=True)
class MyNewRPCRequest(Streamable):
  class_var_1: SomeType

@streamable
@dataclass(frozen=True)
class MyNewRPCResponse(Streamable):
  class_var_2: SomeOtherType

<in *_rpc_api.py>
@marshal
async def new_rpc(self, request: MyNewRPCRequest) -> MyNewRPCResponse:
  ...
```
2024-01-03 10:50:10 -08:00
Arvid Norberg
e80ab1c275
Mempool logging (#17161)
* name worker processes based on what they are used for

* log queue length of mempool spend bundle validation

* improve logging of block validation

* log spendbundle pre-validation time for individual bundles, not the time to drain the queue
2024-01-03 09:27:32 -08:00
Kyle Altendorf
60d0106ef6
apply language labels to dependabot PRs (#17199) 2024-01-03 09:00:30 -08:00
StartToaster
8d53d3f8b5
checkpoint: into main from release/2.1.4 @ 7d555feba3 (#17194)
Source hash: 7d555feba3
Remaining commits: 0
2024-01-02 17:08:38 -08:00
Kyle Altendorf
b5a58e4998
enable ssl_context deprecation warning and fix it (#17127)
* enable ssl_context deprecation warning and fix it

* one case

* a few more

* yup

* one more
2024-01-02 17:07:31 -08:00
Kyle Altendorf
512f7b9fc5
make sure keyring file gets closed (#17126)
* make sure keyring file gets closed

* Update file_keyring.py
2024-01-02 17:06:39 -08:00
Amine Khaldi
6f34720172
Merge commit '7d555feba3cb995124b9433c839ee0dc483b7e7e' into checkpoint/main_from_release_2.1.4_7d555feba3cb995124b9433c839ee0dc483b7e7e 2024-01-02 22:08:05 +01:00
Arvid Norberg
7d555feba3
Spin slower send_transaction() (#17166)
we currenly spin-wait for hearing back whether a transaction made it into the mempool or not (in FullNodeAPI.send_transaction()). We currently spin in a very tight loop, which appears to hog a significant amount of CPU. Increase the sleep to spin slower
2024-01-02 14:05:10 -07:00
Kyle Altendorf
99f44c9fd8
correct condition for coverage-diff label removal (#17187) 2024-01-02 12:03:55 -07:00
Matt Hauff
fa02c05633
Remove coin_solutions from SpendBundle entirely (#17140)
* Remove coin_solutions from SpendBundle (nearly) entirely

* fix test
2024-01-02 10:46:12 -07:00
Arvid Norberg
57a59abde0
remove redundant cost field in NPCResults (#17167) 2024-01-02 10:45:23 -07:00
Kyle Altendorf
cd78dbafdd
eliminate polling in full node for processed tx (#17171) 2023-12-27 09:15:29 -06:00
Amine Khaldi
a389704fdf
Remove redundant bytes32 import in test_nft_wallet_rpc_update_metadata (#17150)
Remove redundant bytes32 import in test_nft_wallet_rpc_update_metadata.
2023-12-27 09:07:35 -06:00
Amine Khaldi
1f060d4580
Don't verify right after signing, and as a result don't re-verify the aggregated version, in sign_coin_spends (#17143)
Don't verify right after signing, and as a result don't re-verify the aggregated version, in sign_coin_spends.
2023-12-27 09:07:15 -06:00
Amine Khaldi
4a44043638
Bail out earlier if the transaction record has no spend bundle in generate_new_decentralised_id (#17129)
Bail out earlier if the transaction record has no spend bundle in generate_new_decentralised_id.
2023-12-27 09:06:57 -06:00
Chris Marslender
ff269b8864
checkpoint: into main from release/2.1.4 @ 507899ff19 (#17157)
Source hash: 507899ff19
Remaining commits: 0
2023-12-27 08:56:54 -06:00
Amine Khaldi
2e0a0c7a23
Addendum. 2023-12-23 00:36:29 +01:00
Amine Khaldi
c431c6675c
Merge commit '507899ff19b0d0bbe14bc7ed8a192f5ad0bc7aa2' into checkpoint/main_from_release_2.1.4_507899ff19b0d0bbe14bc7ed8a192f5ad0bc7aa2 2023-12-23 00:24:41 +01:00
Chris Marslender
11cbe27cb9
checkpoint: into main from release/2.1.4 @ a4cab829ed (#17156)
Source hash: a4cab829ed
Remaining commits: 1
2023-12-22 17:22:26 -06:00
Amine Khaldi
3a2be22c44
Merge commit 'a4cab829edd4f16dd89b29c7234ed39c23c5dcaa' into checkpoint/main_from_release_2.1.4_a4cab829edd4f16dd89b29c7234ed39c23c5dcaa 2023-12-22 23:29:59 +01:00
Arvid Norberg
507899ff19
Mempool multifetch (#17139)
* update type annotation for CoinStore.get_coin_records to support both List and Set

* update the mempool to fetch multiple coin records per query

* optimize the slow-path of updating the mempool by fetching all coin records up-front, in a single sql query
2023-12-22 16:29:39 -06:00
wjblanke
a4cab829ed
Performance tweaks (#17155)
* changed default peers from 80 to 40. switched auto db_sync default to NORMAL instead of FULL

* fixed default

* add defaults to config query
2023-12-22 16:28:31 -06:00
Chris Marslender
739b0d84b8
checkpoint: into main from release/2.1.4 @ 55c064a292 (#17141)
Source hash: 55c064a292
Remaining commits: 0
2023-12-22 08:32:34 -06:00
Amine Khaldi
ae193db2e8
We no longer need to select cost and fee here. 2023-12-22 10:41:12 +01:00
Amine Khaldi
04f0a7454b
Clarify checking compute_memos results in NFT wallet tests (#17137)
Clarify checking compute_memos results in NFT wallet tests.
2023-12-21 21:58:48 -06:00
Amine Khaldi
c1dd6c6930
Annotate test_nft_puzzles.py (#17136)
Annotate test_nft_puzzles.py.
2023-12-21 21:58:40 -06:00
Amine Khaldi
68839f76bd
Simplify get_coins_with_ph (#17135)
Simplify get_coins_with_ph.
2023-12-21 21:58:31 -06:00