Commit Graph
14659 Commits
Author SHA1 Message Date
Amine Khaldi 51301de001 Revert the change as it was only meant for the release branch. 2023-03-21 20:40:36 +01:00
Matt HauffandGitHub 38180cb2b6 Add support to cat_spend RPC for running TAIL (#14730) 2023-03-21 13:33:07 -05:00
Amine Khaldi 4f4cfe71aa Merge commit '1b475512eae370b869c87d01434d08ec4ce2761c' into checkpoint/main_from_release_1.7.1_1b475512eae370b869c87d01434d08ec4ce2761c 2023-03-21 16:10:32 +01:00
Kyle AltendorfandGitHub c33a57f7fb close daemon client even for a BaseException in acquire_connection_to_daemon() 2023-03-21 08:19:13 -04:00
Sebastjan TrepcaandGitHub e11c235b9f added wallet_removed to allowed changes (#14855) 2023-03-21 04:23:29 -05:00
dustinfaceandGitHub aeddd8e92e util: Drop outdated comments (#14787) 2023-03-21 03:34:26 -05:00
Kyle AltendorfandGitHub 9a4b42b022 exclude CompressorArg.generator from repr() due to size (#14849) 1.7.1-rc3 2023-03-21 00:26:06 -05:00
f637881f80 1.7.1 fixes (#14860)
* Zstdwjb (#80)

* limit decompression output size

* added test

---------

Co-authored-by: William Blanke <wjb98672@gmail.com>

* check MAX_GENERATOR_REF_LIST_SIZE earlier (#68)

* make INFINITE_COST more reasonable (#69)

---------

Co-authored-by: William Allen <wallentx@users.noreply.github.com>
Co-authored-by: William Blanke <wjb98672@gmail.com>
2023-03-21 00:20:53 -05:00
JeffandGitHub c7d352fb4d Bump chia-blockchain-gui to 5702b3f60c92aa68c30676179b79c94e2192247c (#14861)
Includes:
* [BUGFIX] limiting the number of rows to show in the conflicting offers screen doesn't work by @ChiaMineJP in https://github.com/Chia-Network/chia-blockchain-gui/pull/1625
* fixed navigation back for counter offer by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1627
2023-03-20 22:29:32 -05:00
JeffandGitHub 79298bd829 Bump chia-blockchain-gui to cecb432b8eb0dd4e867ecd7f1124b712bbeb0d13 (#14845)
Includes:
* First screen - wrong emoji font and icon padding by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1583
* prevent entering wallet from emoji picker space key pressed by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1585
* fix issue where custom fees were being zeroed out when refreshing fee estimates by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1597
* change "Let's Farm!" -> "Get Started" on the windows installer by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1599
* unknown cat amount fix2 by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1598
* smaller screens 2 wallets per row by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1586
* add refresh nft data option to the offer nft preview context menu by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1612
* First screen BUGFIX - there should be no empty div - solved it with b… by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1604
* theme picker same color by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1587
* updated localization link by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1621
* update Windows app icon by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1620
* suppress offer conflict dialog if there are no conflicts by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1623
* fix delay when determining if send notification is an option on the offer sharing dialog by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1624

**Full Changelog**: https://github.com/Chia-Network/chia-blockchain-gui/compare/1.7.1-rc2...1.7.1-rc3
2023-03-20 19:51:56 -05:00
Kyle AltendorfandGitHub 1b475512ea pin pytest-asyncio just for release branch (#14859) 2023-03-20 19:50:36 -05:00
Kyle AltendorfandGitHub f09d051552 fixup tests that do not close all event loops (#14851)
* remove event loop fixture from `test_dl_wallet`

* stop importing unused `Iterator`

* fixup more
2023-03-20 15:01:02 -05:00
dustinfaceandGitHub 543f8c24eb wallet: Return a dict in WalletCoinStore.get_coin_records (#14828) 2023-03-20 13:17:59 -05:00
dustinfaceandGitHub 6b39c133c1 full_node: Avoid some list copying in FullNode.update_wallets (#14827)
* full_node: Just add `new_states` since the entries can't be `None`

* Drop list creation, `lookup_coin_ids` is already a list
2023-03-20 13:17:37 -05:00
Arvid NorbergandGitHub 39d5283f1a add benchmark that tests the mempool over a long time (#14728)
add benchmark that tests the mempool over a long time, churning transactions
2023-03-20 13:16:21 -05:00
Arvid NorbergandGitHub ea2da6ce6e fix renaming of respond_block -> add_block (#14846) 2023-03-18 05:56:40 -05:00
Matt HauffandGitHub d2f1e25df2 Only compile CLVM if source newer than hex (#14840)
* Only compile CLVM is source newer than hex

* lint
2023-03-18 05:43:50 -05:00
dustinfaceandGitHub 26c2ca29de tests: Fix flaky RPC related tests in test_nft_bulk_mint.py (#14834)
* `assert spend_bundle is not None`, required after hinting in next commit

* Don't start duplicated RPC servers, use the already started ones

* Wait for wallet sync before minting
2023-03-17 19:34:46 -05:00
dustinfaceandGitHub f5afa47d85 wallet: Disconnect untrusted peers if we find a trusted synced one (#14640)
* Move `request_time` creation into `is_peer_synced`

* Pass in `height: uint32` instead of `header_block: HeaderBlock`

* Disconnect untrusted peers as soon as we have a synced trusted

* Add `test_long_sync_untrusted_break`

* Ignore already disconnected peers
2023-03-17 19:28:39 -05:00
Arvid NorbergandGitHub 307b5726b3 Test cleanups (#14841)
* remove redundant test cases in test_blockchain.py test_ephemeral_timelock

* reorganize some test cases
2023-03-17 19:28:01 -05:00
William AllenandGitHub ee1c7790ae checkpoint: into main from release/1.7.1 @ 6d09a06037 (#14836)
Source hash: 6d09a06037
Remaining commits: 0
2023-03-17 00:17:49 -05:00
090caf0f08 Added chia completion command (#14782)
* adding 'chia completion' command

* fixing lint

* Fixing isort

* Update chia/cmds/completion.py

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

* Update chia/cmds/completion.py

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

* Cleanup completions command

* formatting with black

* Update chia/cmds/completion.py

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

* Update chia/cmds/completion.py

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

* Update chia/cmds/completion.py

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

* Update chia/cmds/completion.py

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

* Update chia/cmds/completion.py

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

* fixup my mistakes

* just ["chia"]

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-03-16 12:50:30 -05:00
Amine Khaldi dca1a2423d Merge commit '6d09a060379a0eb77d11abf52ba810c93bd4be5f' into checkpoint/main_from_release_1.7.1_6d09a060379a0eb77d11abf52ba810c93bd4be5f 2023-03-16 18:18:35 +01:00
dustinfaceandGitHub fff3ca44c4 wallet: Handle trade coins in the try block of new_coin_state (#14833) 2023-03-16 11:42:55 -05:00
Sebastjan TrepcaandGitHub 6d09a06037 better handling of offer status and failed txs (#14812)
* better handling of offer status and failed txs

* 5 retries before tx is marked failed

* increase test timeouts

* fixed test

* require only difference vs whole fee

* polish + fee coins kick in only if we're missing fee
2023-03-15 20:50:25 -05:00
William AllenandGitHub c21141aa07 checkpoint: into main from release/1.7.1 @ fbfd745b5d (#14832)
Source hash: fbfd745b5d
Remaining commits: 0
2023-03-15 20:50:14 -05:00
dustinfaceandGitHub 62ee1c8766 wallet: Don't just subscribe to all coin ids from the DB (#14813) 2023-03-15 17:52:56 -05:00
Amine Khaldi 05fdb8fa6a Merge commit 'fbfd745b5d918e3f3bfcce9df16793080235ff11' into checkpoint/main_from_release_1.7.1_fbfd745b5d918e3f3bfcce9df16793080235ff11 2023-03-15 20:45:28 +01:00
William AllenandGitHub b17e0291c3 checkpoint: into main from release/1.7.1 @ a6f423522b (#14830)
Source hash: a6f423522b
Remaining commits: 1
2023-03-15 14:40:07 -05:00
Amine Khaldi e30043e1b2 Merge commit 'a6f423522bff6d81d06bc6617caed405d0357aaa' into checkpoint/main_from_release_1.7.1_a6f423522bff6d81d06bc6617caed405d0357aaa 2023-03-15 17:44:01 +01:00
JeffandGitHub fbfd745b5d Bump chia-blockchain-gui to 91234eedaa3fd515699f4d7e38910b5314306cb4 (#14824)
Includes:
* Emoji and color picker positioning fix (did not work at the bottom) by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1555
* Rifeljm/#328 emoji and color picker wallet view (#1553) by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1560
* increase emoji size on the select key screen by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1573
* fix copying of the didid from the signing dialog by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1574
* Remove empty dialog after all blocking offers are canceled by @ChiaMineJP in https://github.com/Chia-Network/chia-blockchain-gui/pull/1554
* Color and emoticon picker - cosmetic fixes by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1579
* NFT detail navigation buttons to center, validation status to top right by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1576
* Moved wallet connect icon to the right (next to notification and exit icon) by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1577
* Fixed emoticon size inside emoji picker on retina displays by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1578
* increase timeouts when fetching content/metadata by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1580
1.7.1-rc2
2023-03-14 21:29:27 -05:00
a6f423522b nft royalty edge cases (#14789)
* nft royalty edge cases

* making tests faster

* Update tests/wallet/nft_wallet/test_nft_1_offers.py

Co-authored-by: Matt Hauff <quexington@gmail.com>

* flake

---------

Co-authored-by: Matt Hauff <quexington@gmail.com>
2023-03-14 20:27:15 -05:00
dependabot[bot]andGitHub b1df040d7e Bump Apple-Actions/import-codesign-certs from 1 to 2
Bumps [Apple-Actions/import-codesign-certs](https://github.com/Apple-Actions/import-codesign-certs) from 1 to 2.
- [Release notes](https://github.com/Apple-Actions/import-codesign-certs/releases)
- [Commits](https://github.com/Apple-Actions/import-codesign-certs/compare/v1...v2)

---
updated-dependencies:
- dependency-name: Apple-Actions/import-codesign-certs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 20:56:44 +00:00
Kyle Altendorf 2add074eed avoid FullNode.fetch_block_batches() from putting two Nones into the batch queue 2023-03-11 08:43:20 -05:00
Zachary BrownandGitHub aafe234cd2 Update the README to link to the Chia website (#14801)
Mention and link to the Chia website in the README
2023-03-10 16:45:18 -06:00
JeffandGitHub 766c33cd33 Bump chia-blockchain-gui to 078cc5976a991ea5a8b2b261deeb71da994d246c (#14794)
Includes:
* special case for one-sided offers where '0' XCH is allowed by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1522
* show NFT title and preview in offer rows by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1521
* tweak testnet button styling by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1520
* Fixing status icons styling (first page & status header) by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1525
* update profiles settings tab and support naming a DID at creation by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1526
* add default fee of zero to fee estimator by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1538
* First screen - edit wallet name (design fixes) by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1529
* Run existing jest tests in CI by @zsolt-dev in https://github.com/Chia-Network/chia-blockchain-gui/pull/1534
* add default fee to fee estimator by @lipalong in https://github.com/Chia-Network/chia-blockchain-gui/pull/1527
* Do not show version mismatch dialog in development by @zsolt-dev in https://github.com/Chia-Network/chia-blockchain-gui/pull/1535
* Prompt to cancel existing offers by @ChiaMineJP in https://github.com/Chia-Network/chia-blockchain-gui/pull/1512
* Add pre commit git hook for eslint and prettier by @zsolt-dev in https://github.com/Chia-Network/chia-blockchain-gui/pull/1536
* update profile settings width and other small changes by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1537
* disabled counter offer button tooltip by @lipalong in https://github.com/Chia-Network/chia-blockchain-gui/pull/1544
* First screen NEW WALLET => ADD WALLET by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1543
* Emoji and color picker cosmetic fixes by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1542
* Sortable wallets bugfixes (+ saving to prefs instead of localStorage) by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1540
* dark mode support by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1546
* Zero state for wallet key home screen by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1545
* add burn icon by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1547
* Changed the Burn NFT icon to a burning/flame icon by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1532
* added support for reset bypass by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1549
* Randomizing the color and emoji for existing keys the first time use … by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1531
* Rifeljm/#1128 show please wait when accepting offer wallet not synced by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1533
* Fixed an issue where canceled offer in the cancel prompt dialog did n… by @ChiaMineJP in https://github.com/Chia-Network/chia-blockchain-gui/pull/1550
* fix countering offer flow and allow countering from viewing an offer from a notification by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1548
* minor text/emoji sizing and padding tweaks to the wallet key home screen by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1551

**Full Changelog**: https://github.com/Chia-Network/chia-blockchain-gui/compare/1.8.0-b3...1.8.0-b4
1.7.1-rc1
2023-03-09 19:35:19 -06:00
Arvid NorbergandGitHub 1a66a9b3e3 in mempool, support sqlite without generated columns (#14788) 2023-03-09 19:13:43 -06:00
Arvid NorbergandGitHub 99ef78029b disable soft-fork 2 (for now) (#14786)
disable soft-fork 2 (for now) until we properly think-through and settle on how to handle ephemeral coins
2023-03-09 19:13:15 -06:00
Kronus91andGitHub 95d05b72c4 Stop sending change to a new address (#14422)
* Stop sending change to a new address

* Fix bug

* Add config & unit tests

* Resolve comments

* Refine based on the requirements

* Change config to str

* Disable addr reuse for unit test since the hardcode offer doesn't compatible with it

* Cover offer trade

* Add unit test and RPC support

* Add reuse option for cli

* Enhance unit test

* Fix unit test
2023-03-09 18:32:21 -06:00
Amine KhaldiandGitHub 7d770c1c1e Add unit tests for create_bundle_from_mempool (#14700)
* Add unit tests for create_bundle_from_mempool().

* Factor out some shared code into a function.

* Add a variation for sending transactions in reverse order.

* Split some logic into functions.

* Refactor setting up the mempool with coins as well as big cost spend bundle handling.
2023-03-09 14:27:50 -06:00
Kyle Altendorf 2b2f70405b the future! 2023-03-09 13:40:48 -05:00
Kyle Altendorf 290657b287 cast 2023-03-09 10:21:29 -05:00
Kyle Altendorf 2764087fd3 fine... just assert 2023-03-09 10:08:32 -05:00
Kyle AltendorfandGitHub c4c165eabd avoid AttributeError when shutting down plotting (#3954)
* Remove valid # type: ignore

A user ran into an exception on this line that mypy should have caught.  Let's see what it says.

```python-traceback
2021-05-06T07:31:41.595 full_node full_node_server        : ERROR    Exception , exception Stack: Traceback (most recent call last):
  File "chia\server\server.py", line 356, in start_client
  File "aiohttp\client.py", line 763, in _ws_connect
  File "aiohttp\client.py", line 521, in _request
  File "aiohttp\connector.py", line 535, in connect
  File "aiohttp\connector.py", line 892, in _create_connection
  File "aiohttp\connector.py", line 1032, in _create_direct_connection
  File "aiohttp\connector.py", line 969, in _wrap_create_connection
  File "asyncio\base_events.py", line 949, in create_connection
  File "asyncio\selector_events.py", line 473, in sock_connect
concurrent.futures._base.CancelledError

2021-05-06T07:31:45.016 daemon asyncio                    : ERROR    Task exception was never retrieved
future: <Task finished coro=<kill_service() done, defined at chia\daemon\server.py:833> exception=AttributeError("'list' object has no attribute 'pid'")>
Traceback (most recent call last):
  File "chia\daemon\server.py", line 841, in kill_service
  File "chia\daemon\server.py", line 805, in kill_process
AttributeError: 'list' object has no attribute 'pid'
2021-05-06T07:32:09.965 full_node full_node_server        : ERROR    Exception:  <class 'concurrent.futures._base.CancelledError'>, closing connection None. Traceback (most recent call last):
  File "chia\server\server.py", line 531, in api_call
  File "asyncio\tasks.py", line 435, in wait_for
concurrent.futures._base.CancelledError

2021-05-06T07:33:20.573 full_node full_node_server        : ERROR    Exception , exception Stack: Traceback (most recent call last):
  File "chia\server\server.py", line 356, in start_client
  File "aiohttp\client.py", line 763, in _ws_connect
  File "aiohttp\client.py", line 521, in _request
  File "aiohttp\connector.py", line 535, in connect
  File "aiohttp\connector.py", line 892, in _create_connection
  File "aiohttp\connector.py", line 1032, in _create_direct_connection
  File "aiohttp\connector.py", line 969, in _wrap_create_connection
```

* fix plotter service killing

* just make it always be a list of processes for all services

* catch up tests

* Update chia/daemon/server.py
2023-03-09 04:22:38 -06:00
Kyle AltendorfandGitHub 7df6420cdd Update __main__.py 2023-03-08 21:13:43 -05:00
Kyle AltendorfandGitHub 12b9c5c3df Update __main__.py 2023-03-08 20:18:57 -05:00
Kyle AltendorfandGitHub 01d2cd0f78 Create __main__.py 2023-03-08 20:06:42 -05:00
Kyle AltendorfandGitHub d84917f5df hint chia.plotting.create_plots (#14692)
* hint chia.plotting.create_plots

* correct the import

* fixup

* imports

* get final from typing_extensions
2023-03-08 12:57:50 -06:00
William Blanke d242d74262 remove unused self.new_subslot_end 2023-03-08 10:31:14 -08:00
William Blanke 898bb79941 remove unused self.new_subslot_end 2023-03-08 10:28:57 -08:00