Commit Graph

3854 Commits

Author SHA1 Message Date
William Allen
fde6d6fe73
checkpoint: into main from release/1.8.2 @ c55be8e163 (#15476)
Source hash: c55be8e163
Remaining commits: 1
2023-06-09 17:33:19 -05:00
Matt Hauff
cf15c0fcb9
rename exclude_coin_* -> excluded_coin_* for consistency (#15460)
* exclude -> excluded

* Add a bit of test coverage

* fix bad change

* Add test coverage

* Add a little more test coverage
2023-06-09 16:35:53 -05:00
dustinface
5e0b8bb1ec
util: Drop chia.util.chunks and use chia.util.to_batches instead (#15418) 2023-06-09 16:35:31 -05:00
Matt Hauff
2441035afc
Add reorg rollback to retry store (#15303)
add reorg rollback to retry store
2023-06-09 16:35:11 -05:00
Amine Khaldi
37891cf01f
Merge commit 'c55be8e16364750ede9694ebdf58d5d143ecef97' into checkpoint/main_from_release_1.8.2_c55be8e16364750ede9694ebdf58d5d143ecef97 2023-06-09 17:15:14 +01:00
dustinface
05b5265234
wallet: Fix clawback hex files (#15477) 2023-06-09 11:06:07 -05:00
dustinface
bb5b3ccf6f
server: Drop unused WSChiaConnection.active (#15464) 2023-06-09 05:12:54 -05:00
dustinface
e3beca2d0d
full_node: More set usage in subscription code (#15420) 2023-06-09 05:11:54 -05:00
dustinface
a93a85e639
wallet: Hint wallet.py (#15362) 2023-06-09 05:11:23 -05:00
Arvid Norberg
3ccaf37f77
use a more aggresive activation schedule on testnet10 (#15376) 2023-06-09 05:09:24 -05:00
William Allen
591e59a6cc
checkpoint: into main from release/1.8.2 @ f0071358bf (#15451)
Source hash: f0071358bf
Remaining commits: 2
2023-06-08 20:17:20 -05:00
Kyle Altendorf
9e8d6ebd71
rework LockQueue as PriorityMutex (#14920)
* explore a simplification of the blockchain priority lock queue

* add some tests

* correct task tracking

* use time.perf_counter for better resolution on windows

* just count an integer for request order retention

* stop using time in the (new) tests as well

* add tests and a couple no covers

* less existing test refactoring

* use a sync PriorityQueue

* switch to deques

* address bugs and simplify priority to deque mapping

* remove unused attribute ._priority_type

* make LockQueu.create() not async

* explain the active element check on wait cancellation

* drop LockQueue._process()

* import final from typing_extensions

* rename LockQueue to PriorityMutex

* remove test from mypy exclusions

* clean up straggling lock references

* ignore test failure case line coverage

* add a monkeypatch test ;[

* remove queued callback feature

* remove todos
2023-06-07 14:08:45 -05:00
Matt Hauff
8e5441c208
Repin clvm_tools_rs==0.1.34 (#15455)
* Repin clvm_tools_rs

* Update hex files to have newlines
2023-06-07 14:08:17 -05:00
dustinface
d23ea4df38
server: Fix versions for incoming connections (#15465) 2023-06-07 14:07:56 -05:00
Amine Khaldi
c8ee474583
Merge commit 'f0071358bf9a226af8adb2ad12105b3e3d015515' into checkpoint/main_from_release_1.8.2_f0071358bf9a226af8adb2ad12105b3e3d015515 2023-06-07 15:20:23 +01:00
Matt Hauff
0bd6a8ac3b
Move CAT_MOD from cat_loader -> cat_utils (#15459)
Move CAT_MOD from chia.wallet.puzzles.cat_loader -> chia.wallet.cat_wallet.cat_utils
2023-06-06 19:13:11 -05:00
dustinface
bddcc8f3a8
wallet: Fix missing hint in GenesisById.generate_issuance_bundle (#15424)
* wallet: Fix missing hint in `GenesisById.generate_issuance_bundle`

* Call `get_tree_hash` only once
2023-06-06 12:39:56 -05:00
dustinface
b2cbea84d9
wallet: Hint puzzle_utils.py (#15422) 2023-06-06 12:39:15 -05:00
dustinface
ebc5f3c124
util: Improve list_to_batches (#15415)
* Make `list_to_batches` work with collections instead of lists only

* Move `to_batches` into `chia.util.misc`

* Only support `set` and `list`

* Drop `tests.generator.test_to_batches` exclusion

* Improve type restrictions and be more coverage friendly in tests
2023-06-06 12:00:07 -05:00
Earle Lowe
c55be8e163
Check all peers when subscribing/tracking to new DL singleton (#15427) 2023-06-05 11:26:56 -05:00
Amine Khaldi
8db38be33e
Merge commit 'ec28f764632b6c77d35b5720c258d20b7bfdd788' into checkpoint/main_from_release_1.8.2_ec28f764632b6c77d35b5720c258d20b7bfdd788 2023-06-05 17:25:05 +01:00
William Allen
349f87facf
checkpoint: into main from release/1.8.2 @ ef68bf76c1 (#15431)
Source hash: ef68bf76c1
Remaining commits: 0
2023-06-05 11:23:15 -05:00
Kronus91
f0071358bf
Clawback Integration (#14348)
* Clawback integration draft

* Add unit test

* Clawback rework

* Fix unit test

* Fix coin type

* Add tx fee & bulk clawback

* Add manual claim

* Add get_clawback_coins API

* Fix unit test

* Fix unit test

* Resolve comments

* Fix unit test

* remove erroneous comment from p2_1_of_n.clvm

* Resolve comments

* use full puzzle instead of hash in augmented_condition.clvm

* Fix pre-commit

* Add set auto claim api

* Resolve comments

* Fix precommit

* Add get auto claim config api

* Fix pre-commit

* Fix mypy and unit tests

* Switch to reuse coin store solution

* Fix unit tests

* Fix pylint

* Resolve comments

* Fix rename

* Revert puzzle_decorator_type since circular import

* Resolve comments

* Add new coin_type & metadata to coin_records

* Remove unrelated changes

* Fix pre-commit

* Remove unrelated changes

* Fix pre-commit

* Add get_coin_records_between

* Fix field data type

* Resolve comments

* Fix unit test

* Remove unrelated changes

* Remove unrelated changes

* Improve unit tests

* Resolve comments

* Fix clvm hex

* Fix unit tests

* Fix API router

* Update rpc client

* Fix pre-commit

* Remove unrelated changes

* Fix set/get auto claim

* Force populate secret key for clawback

* optimizations

* added clawback puzzle hashes

* update drivers and add lifecycle tests

* Fix driver Program types

* avoid redundant uncurry in clawback

* simplify deserialize_coin_metadata()

* run clawback puzzles with a lower cost limit

* Update chia/wallet/wallet_state_manager.py

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>

* Add tx records for Clawback

* Add clawback coin id

* Add type filter for get_transactions

* Modify clawback tx types

* Resolve comments

* Resolve comments

* Fix unit tests

* Resolve comments

* Improve unit test

* Use merkle tree class

* Resolve comments

* Resolve comments

* Fix curry tree hash

* Improve coverage

* Improve coverage

* Fix unit test

* Fix test

* Improve coverage

* Fix pre-commit

* Resolve comments

* Handle invalid clawback metadata

* Fix unit tests

* Improve coverage

* Handle empty byte issue

* Forward memo

* Fix unit test

* Resolve comments

* Rework Clawback TX management

* Add confirmed filter

* Resolve comments

* Fix unit test

* Fix pre-commit

* Improve coverage

* Fix unit test

* Handle missing auto_claim config

* Fix pre-commit

* Revert tx confirmed change

* Drop unused `deserialize_coin_metadata`

* Parse clawback metadata in `WalletCoinRecord.parsed_metadata`

* Use `WalletCoinRecord.parsed_metadata`

* Avoid querying low amount coins with the `amount_range` parameter

* Drop unused `to_puzhash`

* Drop `print("Ping")`

* Drop outdated assert

* Resolve comments

* Fix coverage

---------

Co-authored-by: geoffwalmsley <geoffwalmsley@gmail.com>
Co-authored-by: Sebastjan Trepca <trepca@gmail.com>
Co-authored-by: arvidn <arvid@libtorrent.org>
Co-authored-by: xdustinface <xdustinfacex@gmail.com>
2023-06-05 10:53:34 -05:00
Jeff
ec28f76463
remove unnecessary filtering of state_changed messages for the UI (#15437) 2023-06-03 09:56:45 -05:00
Matt Hauff
201f4e459d
Fix vcs get command when no proofs exist yet (#15432) 2023-06-02 17:54:31 -05:00
Matt Hauff
5dd204a001
Fix .get_next_from_coin_spend on VerifiedCredential and test new puzhashes (#15423)
Fix .get_next_from_coin_spend on VCWallet and test new puzhashes
2023-06-02 17:54:04 -05:00
Arvid Norberg
ae0939af79
bump SOFT_FORK3_HEIGHT to align with the next release cycle (#15428) 2023-06-01 21:48:01 -05:00
Amine Khaldi
88f2121791
Merge commit 'ef68bf76c1c72302a198888780a19698684b6666' into checkpoint/main_from_release_1.8.2_ef68bf76c1c72302a198888780a19698684b6666 2023-06-01 20:34:41 +01:00
dustinface
93af781b4e
wallet: Drop unused conditions helper/parameter (#15421) 2023-06-01 14:27:35 -05:00
Kronus91
ef68bf76c1
Add confirmed filter for get_transactions (#15374)
* Add confirmed filter

* resolve comment
2023-06-01 11:53:59 -05:00
Kyle Altendorf
70a8874ba5
copy connection set to iterate while pinging (#15407) 2023-05-31 11:34:30 -05:00
Sebastjan Trepca
f4204de752
get_wallet_balances (#15367)
* added get_wallet_balances rpc api

* whitespace

* get_wallet_balances for GUI convenience

* test for specified ids

* wait for bundles to get into mempool
2023-05-31 11:28:40 -05:00
Chris Marslender
35e55bd970
Add timelord_launcher to the pyinstaller.spec (#15094)
* Add timelord_launcher to the pyinstaller.spec

* Update to just timelord_launcher
2023-05-30 12:50:31 -05:00
Adam Kelly
60d11a435f
Type hint (#15357)
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-05-24 19:05:36 -05:00
Matt Hauff
1fa1f52c11
Use spendable instead of confirmed balance for offers (#15352) 2023-05-24 16:51:07 -05:00
Amine Khaldi
2abc0e44ce
Annotate harvester_rpc_api.py (#15378)
* Annotate harvester_rpc_api.py.

* We no longer need to exclude chia.server.start_harvester.
2023-05-24 16:50:06 -05:00
Amine Khaldi
36bc639ed9
Annotate test_farmer_harvester_rpc.py (#15377)
Annotate test_farmer_harvester_rpc.py.
2023-05-24 16:49:53 -05:00
dustinface
1141f1cdbd
wallet: Refactor WalletStateManager.get_keys (#15361)
* wallet: Refactor `WalletStateManager.get_keys`

* Test `WalletStateManager.get_private_key`
2023-05-24 16:49:36 -05:00
Adam Kelly
7f591890af
Give a type to tuple representing peak (height and block hash) of peer (#14853)
* Give a type to  tuple representing peak (height and block hash) of peer

* Update chia/wallet/wallet_node.py

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-05-23 19:53:32 -05:00
Adam Kelly
337cb312e1
Typecheck chia/wallet/secret_key_store.py (#14945)
* Typecheck chia/wallet/secret_key_store.py

* typecheck secret_key_store.py

---------

Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-05-23 19:53:01 -05:00
dustinface
92e10951b2
pools: Drop PoolWallet.get_next_interesting_coin (#15273) 2023-05-23 14:27:43 -05:00
Kyle Altendorf
5d14f0a208
add test coverage for starting a node with an existing db (#15338)
* add test coverage for starting a node with an existing db

* Update chia/simulator/setup_services.py
2023-05-23 14:27:10 -05:00
Adam Kelly
30cfca9589
Typecheck log_exceptions.py (#14941)
* Typecheck log_exceptions.py

* typecheck log_exceptions

---------

Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-05-23 14:24:56 -05:00
Adam Kelly
696eb6c6d6
Typecheck chia/util/safe_cancel_task.py (#14943)
* Typecheck chia/util/safe_cancel_task.py

* typecheck safe_cancel_task.py

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-05-23 14:24:44 -05:00
Arvid Norberg
ff226e8cb7
make sure tests that use BlockTools use a single source of consensus constants (#15364)
make sure tests that use BlockTools use a single source of consensus constants. This is in preparations for being able to run tests with different sets of constants, e.g. the hard-fork constants
2023-05-23 12:02:28 -05:00
Amine Khaldi
ef613df2f0
Annotate chia/plotters/chiapos.py (#15363)
Annotate chia/plotters/chiapos.py.
2023-05-23 12:01:37 -05:00
Amine Khaldi
5473c94a6b
Annotate chia/simulator/block_tools.py (#15349) 2023-05-23 10:09:45 -05:00
Amine Khaldi
cf4fffdbea
Annotate farmer/farmer_api.py (#15347)
Annotate farmer/farmer_api.py.
2023-05-23 05:34:53 -05:00
Roy Natian
eae562bde3
Wording change for fix ssl - Update ssl_check.py (#15358)
To make it easier for people to copy-paste the command, I put it at the end of the sentence.
2023-05-23 05:00:22 -05:00
Amine Khaldi
e44b60c348
Annotate chia/timelord/iters_from_block.py (#15348) 2023-05-23 04:59:49 -05:00