Commit Graph
14659 Commits
Author SHA1 Message Date
Matt HauffandGitHub 9cc25cc820 Quex.offer mod tests (#14478)
* add test

* do some forwards compat stuff

* Add a forwards compat example

* fix test

* Add more forwards compat tests

* Add more forwads compat tests

* Add forwards compatibility for nft1s

* add forward compatibility for nft offers

* Add forwards compatibility tests for DL offers

* Update DL test offers

* lint

* isort

* offer mod bytes

* Fix compression test

* isort again

* Add special offers for <=3.7 (CATs)

* Add special offers for <=3.7 (NFT1s)

* Add special offers for <=3.7 (NFT0s)

* Add special offers for <=3.7 (DLs)

* Check for conflicting items during aggregation

* isort

* Return created old offers properly marked
2023-02-06 22:04:39 -06:00
Gene HoffmanandGitHub a4dac4e128 Adding Community seeders/dns introducers (#14497)
* Add initial ecosystem seeders

* Initial community dns introducer/seeders

* Shift wallet to a yaml anchor, only update one list
2023-02-06 16:29:37 -06:00
Kyle AltendorfandGitHub f012f36aa7 pin mypy to < 1 (#14504)
(cherry picked from commit e106780596)
2023-02-06 16:25:54 -06:00
Kyle AltendorfandGitHub ba74a983eb pin mypy to < 1 (#14503) 2023-02-06 16:25:40 -06:00
Amine Khaldi 88e2d79905 Merge commit 'd1a4c579f4dd2b058fcd46f2249a876a60b1dec5' into checkpoint/main_from_release_1.7.0_d1a4c579f4dd2b058fcd46f2249a876a60b1dec5 2023-02-06 21:36:02 +01:00
Arvid NorbergandGitHub 348d578a4b simplify get_block_spends() (#14492)
simplify get_block_spends() and remove (fairly meaningless) DECOMPRESS_BLOCK_SPENDS clvm program
2023-02-06 14:34:53 -06:00
William AllenandGitHub bd7714cd6e checkpoint: into main from release/1.7.0 @ 842b2a59c1 (#14498)
Source hash: 842b2a59c1
Remaining commits: 3
2023-02-06 14:33:22 -06:00
Adam KellyandGitHub 9be3c7d00a Ensure fee estimates monotonically decrease with time (#14368)
* Ensure fee estimates monotonically decrease with time

* Improve function naming and document use

* type checking
2023-02-06 12:53:03 -06:00
Amine Khaldi 64ffc6fed5 Revert 842b2a5 as it was meant just for the release, not main. 2023-02-06 17:06:30 +01:00
Amine Khaldi bd956f5938 Merge commit '842b2a59c15e5454389af2cb27d197272427ea3c' into checkpoint/main_from_release_1.7.0_842b2a59c15e5454389af2cb27d197272427ea3c 2023-02-06 17:04:01 +01:00
Amine KhaldiandGitHub 09a2c79898 Add unit tests for ephemeral time locks (#14433)
* Add unit tests for ephemeral time locks.

* Make the current block's height and timestamp values clearer in the test.

* Add some comments to explain some cases and opt for an explicit height and timestamp.

* Adapt the test coin timestamp so we can test the ephemeral one with the value we set.

* Document a subtle difference between ASSERT_SECONDS_RELATIVE 0 and ASSERT_HEIGHT_RELATIVE 0.
2023-02-06 03:28:16 -06:00
dustinfaceandGitHub 5d55cd6a22 simulator: Replace localhost -> 127.0.0.1 in farmer/harvester config (#14165)
We create new configs in `setup_farmer` and `setup_harvester` and they 
contain `localhost` defaults. Replace it here also like we do it in 
`BlockTools` to consistently use `127.0.0.1` instead of `localhost` in 
tests.
2023-02-05 22:16:18 -06:00
William AllenandGitHub 8848b80642 checkpoint: into main from release/1.7.0 @ b2cb1da158 (#14462)
Source hash: b2cb1da158
Remaining commits: 2
2023-02-04 16:08:51 -06:00
Kyle AltendorfandGitHub 649e5ac4b0 gc.collect() before unlinking the db in some tests (#14491)
https://github.com/python/cpython/issues/97641
2023-02-04 15:05:26 -06:00
Arvid NorbergandGitHub cbbc8b43b8 make the tests use the real COST_PER_BYTE constant (#14470) 2023-02-04 14:14:52 -06:00
dustinfaceandGitHub 3bd6069f04 server: Exclude some attributes from WSChiaConnection.__repr__ (#14466) 2023-02-04 14:14:27 -06:00
Arvid NorbergandGitHub 2c0dd6b2c1 add unit test for mempool_check_time_locks (#14441) 2023-02-04 14:13:59 -06:00
Amine KhaldiandGitHub 5edb5b14f9 Assert that we're getting a sensible limit in get_items_not_in_filter (#14420)
Assert that we're getting a sensible limit in get_items_not_in_filter.
2023-02-04 14:13:15 -06:00
d8d8660dbc RPC call to reset wallet sync data (#14365)
* Add resync API

* Resolve comments

* Fix precommit

* set_wallet_resync RPC call

* disable resync after reset

* Update chia/wallet/wallet_node.py

Co-authored-by: Jeff <paninaro@gmail.com>

* fixes

* fixes

* rename method

* more tests, schema test

* removed formatting changes in initial-config

* another test case

* another test case

* simplification

* rename fix

* hinting

* added notification id table

---------

Co-authored-by: ytx1991 <t.yu@chia.net>
Co-authored-by: Jeff <paninaro@gmail.com>
2023-02-04 14:12:41 -06:00
Kyle AltendorfandGitHub 563af03244 Add diff-cover report (#14140)
* Add diff-cover report

* also dump diff-cover as markdown to github run summary

* add diff-cover html report
2023-02-04 14:10:48 -06:00
Adam KellyandGitHub 83c864b2f0 Correct fee estimate calculation to be in mojos, not millimojos (#14474) 1.7.0-rc6 2023-02-04 14:09:39 -06:00
JeffandGitHub 85faffed29 Includes: moved NFT gallery search bar position to the right disable offer txn row clicking to avoid a crash update app header with latest design fixed broken loading of remote files fix settings page profiles selection fix crash when creating a plotNFT fix wording in offer sharing summary dialog update offerpool sharing to support offer notifications notification icon redesign update wording for the push notification setting reject object attribute values when rendering NFT details fix top bar success, cancel and reload icons fix ModalDialogsContext.Provider that was causing infinite rerenders
Bump chia-blockchain-gui to f030364debadb3cbf788ee47b5e4f0ed10ffc530

Includes:
moved NFT gallery search bar position to the right
disable offer txn row clicking to avoid a crash
update app header with latest design
fixed broken loading of remote files
fix settings page profiles selection
fix crash when creating a plotNFT
fix wording in offer sharing summary dialog
update offerpool sharing to support offer notifications
notification icon redesign
update wording for the push notification setting
reject object attribute values when rendering NFT details
fix top bar success, cancel and reload icons
fix ModalDialogsContext.Provider that was causing infinite rerenders
2023-02-04 13:18:07 -06:00
Adam KellyandGitHub 58c669164c Typecheck _set_state_changed_callback (#14464) 2023-02-01 15:31:46 -06:00
Amine Khaldi e41c4929bf Update the anchor with main's checkpoint. 2023-02-01 12:45:02 +01:00
Amine Khaldi 8b7c146398 Merge commit 'b2cb1da158988e0bedd28aed56f90fd83ac7d691' into checkpoint/main_from_release_1.7.0_b2cb1da158988e0bedd28aed56f90fd83ac7d691 2023-02-01 12:41:37 +01:00
Matt HauffandGitHub 97230ca3b0 Add a way to import a SpendSim and SimClient as a contextmanager (#14434) 2023-01-31 19:22:06 -06:00
Matt HauffandGitHub d1a4c579f4 Check incoming notification hints (#14450)
* add self notification test

* add a check that hint belongs to us

* lint
2023-01-31 18:58:46 -06:00
Kyle AltendorfandGitHub 842b2a59c1 remove bookworm install script testing (#14449)
This should be recovered in `main`.
2023-01-31 17:06:49 -06:00
William AllenandGitHub d741161883 checkpoint: into main from release/1.7.0 @ 655eaad639 (#14439)
Source hash: 655eaad639
Remaining commits: 1
2023-01-31 15:55:51 -06:00
Chris MarslenderandGitHub 0bfbe68dd7 Add additional state_changed events to metrics destination (#14419)
* Add additional farmer state_changed events to metrics destination

* Add add_connection event to harvester, pass add/close_connection harvester events to metrics destination

* Add add/close_connection state changed events for the wallet to the metrics destination
2023-01-31 12:25:50 -06:00
Amine Khaldi b546888614 Merge commit '655eaad639588819beeb8bcac1a2d1ab45acf812' into checkpoint/main_from_release_1.7.0_655eaad639588819beeb8bcac1a2d1ab45acf812 2023-01-31 12:52:52 +01:00
dustinfaceandGitHub c26902a6ec wallet: Avoid duplicates in get_puzzle_hashes_to_subscribe (#14186)
* wallet: Avoid duplicates in `get_puzzle_hashes_to_subscribe`

We currently store the derived puzzle hashes in both, puzzle store and
interested store and here we combine them as list. There is some code to
mitigate duplicate subscriptions but its based on chunks here
https://github.com/Chia-Network/chia-blockchain/blob/39d733599d170b340b0ae4c13ada8896a78a0d29/chia/wallet/wallet_node.py#L662
so if there are less than 1000 puzzle hashes it obviously still can lead
to redundant subscription calls?

* Add `test_unique_puzzle_hash_subscriptions`
2023-01-30 16:23:17 -06:00
2064b61ccc Deprecate curry-and-treehash and replace it with curry. (#14066)
* Deprecate `curry-and-treehash` and replace it with `curry`.

* Reduce cost at expense of readability.

* Improvements to `curry.clib`.

* Fix comment

* Tweak names.

* change dashes to underscores

* Use macro version by quexington.

---------

Co-authored-by: Matt Hauff <quexington@gmail.com>
2023-01-30 16:09:08 -06:00
William AllenandGitHub c1b33a0ddd checkpoint: into main from release/1.7.0 @ 655f6c2292 (#14429)
Source hash: 655f6c2292
Remaining commits: 1
2023-01-30 16:08:18 -06:00
JeffandGitHub b2cb1da158 Bump chia-blockchain-gui to chia-blockchain-gui (#14424)
Includes:
Changes to support offer notifications
Support for NFT bulk burning
NFT gallery "Select / deselect" cosmetic fixes (#1366)
1.7.0-rc5
2023-01-30 15:50:02 -06:00
Arvid NorbergandGitHub e9c0fcba06 fix negative tests in test_pool_livecycle (#14425) 2023-01-30 10:55:33 -06:00
Amine Khaldi 3fe53a7acf Merge commit '655f6c2292fe806a06d2607c5606a5a382861f92' into checkpoint/main_from_release_1.7.0_655f6c2292fe806a06d2607c5606a5a382861f92 2023-01-30 13:02:36 +01:00
655eaad639 Rename notification config (#14397)
* Rename notification config

* Change unit test

* Fix test

* Set minimum required notification amount

---------

Co-authored-by: Matt Hauff <quexington@gmail.com>
2023-01-27 17:20:34 -06:00
Arvid NorbergandGitHub 68c9aafc0a move SerializedProgram to its own file (#14391)
* move SerializedProgram into its own file (to fixup type annotations)

* fix type annotations for SerializedProgram

* fixup import statements for new SerializedProgram module
2023-01-27 17:20:23 -06:00
Matt HauffandGitHub 655f6c2292 Add a persitent id table to notification store (#14418)
* Add a persitent id table to notification store

* rename table

* Add a test

* lint
2023-01-27 17:20:01 -06:00
Kyle AltendorfandGitHub a063d0c224 remove args passed to super() calls (#14407) 2023-01-27 17:19:12 -06:00
Kronus91andGitHub c541d49afe Get memo api (#14377)
* Add NFT bulk transfer API

* Fix pre-commit

* Improve unit test

* Fix precommit

* Improve unit test

* Fix response json serialization

* Fix bulk API missing transaction

* Remove print

* Add get_transaction_memo API

* Add unit test for XCH

* Cover received coins

* Revert test hack

* Remove irrelevant change

* Add parameter override

* Fix pre-commit
2023-01-27 17:16:30 -06:00
Kyle AltendorfandGitHub 523a5d4cf5 Add support for Python 3.11 (#11407)
* Add Python 3.11 to CI

* 3.11 in the install scripts

* ${{ format('{0}.0-alpha - {0}.X', matrix.python) }}

* bump chiavdf and chiabip158 for releases with 3.11 wheels

* also bump blspy and clvm-tools-rs

* drop the extra .X for the python setup version

* chia_rs==0.1.13

* Update install.sh

* pyinstaller==5.5

* less mutable defaults

* memory_profiler

* assert sqlite3.threadsafety >= 1

* create tasks for stopping services

(cherry picked from commit 3384714f2e3e0bdc8c3d3741027e9e4fb69a6002)

* psutil==5.9.4

* drop memory_profiler transitive dep since it now supports 3.11

* drop redundant pre-release python getting incantation

* watchdog==2.2.0

* black for py311
2023-01-27 17:16:03 -06:00
Adam KellyandGitHub 22dfc83d51 Reorganize reusable singleton wallet code (#14339) 2023-01-27 17:09:13 -06:00
William AllenandGitHub 4ebd51df83 checkpoint: into main from release/1.7.0 @ 6ef40dce40 (#14417)
Source hash: 6ef40dce40
Remaining commits: 0
2023-01-27 11:01:15 -06:00
Amine Khaldi f43bd86315 Merge commit '6ef40dce4003e76a5a363b249d5f87194fa1c50d' into checkpoint/main_from_release_1.7.0_6ef40dce4003e76a5a363b249d5f87194fa1c50d 2023-01-27 16:39:45 +01:00
JeffandGitHub 6ef40dce40 fix sending of the new_on_chain_notification state change message (#14410) 2023-01-27 09:35:18 -06:00
neurosis69andGitHub f836034649 Dl wallet store index fix (#13316)
* index fixes

Signed-off-by: Thomas Hein <thomashein@gmx.at>

* restructure

Signed-off-by: Thomas Hein <thomashein@gmx.at>

* black

Signed-off-by: Thomas Hein <thomashein@gmx.at>

* fix typo

Signed-off-by: Thomas Hein <thomashein@gmx.at>

Signed-off-by: Thomas Hein <thomashein@gmx.at>
2023-01-26 11:19:09 -06:00
Arvid NorbergandGitHub fda2163b6b remove additions() and reserved_fee() from CoinSpend (#14394) 2023-01-26 11:16:14 -06:00
Matt HauffandGitHub 1d4700dceb Add some extra checks for size and existence to notification backend (#14398)
* Add some extra checks for size and existence to notification backend

* mypy
1.7.0-rc4
2023-01-25 23:45:23 -06:00