Commit Graph
14659 Commits
Author SHA1 Message Date
dustinfaceandGitHub a40f04012b server: Replace WSChiaConnection.__getattr__ with call_api (#14052) 2022-12-13 00:35:42 -06:00
Amine KhaldiandGitHub 75b718c218 Opt for a function instead of the broke from inner loop pattern (#13981) 2022-12-13 00:33:18 -06:00
Adam KellyandGitHub 30feeaa45e Avoid calling spend_bundle.name() twice (#14109) 2022-12-13 00:32:55 -06:00
Amine Khaldi 60454f2c9b Update the anchor. 2022-12-12 20:31:26 +01:00
Amine Khaldi bd08010205 Merge commit '397d703570648f3797261048f221d1b387dce94b' into checkpoint/main_from_release_1.7.0_397d703570648f3797261048f221d1b387dce94b 2022-12-12 20:05:35 +01:00
William AllenandGitHub c209f886b1 checkpoint: into main from release/1.7.0 @ 21cd8305f5 (#14110) 2022-12-12 13:04:51 -06:00
Almog De PazandGitHub 801e1a0431 account for asyncio.wait_for returning early for timeout (#14097) 2022-12-12 10:59:47 -06:00
Amine Khaldi d69ba48f74 Merge commit '21cd8305f55a207408c6014b72568bd56ab8a25a' into checkpoint/main_from_release_1.7.0_21cd8305f55a207408c6014b72568bd56ab8a25a 2022-12-12 17:15:45 +01:00
Earle LoweandGitHub 29590b86a5 Cleanup cli options for chia wallet coins {list,split,combine} (#14102)
* Cleanup options

* Various fixes

* List instead of Tuple
1.7.0-rc3
2022-12-12 09:49:37 -06:00
William AllenandGitHub 32fa4fd41b checkpoint: into main from release/1.7.0 @ 998ef392d9 (#14091)
Source hash: 998ef392d9
Remaining commits: 1
2022-12-12 09:45:52 -06:00
Arvid NorbergandGitHub ee61506262 remove (redundant) OR FAIL from UPDATE sql statements (#14096)
remove (redundant) OR FAIL from UPDATE sql statements. When relevant, assert that at least one row was affected (which was the original intent)
2022-12-12 09:18:32 -06:00
LunaandGitHub ae5343a781 Add Arch Linux to install-gui.sh script (#14059)
* Add Arch Linux to install script

Install-gui.sh will now install nodejs and npm on Arch Linux

* Removed the 'y' in the pacman install command

Removed the 'y' in the pacman install command
2022-12-09 20:29:23 -06:00
Arvid NorbergandGitHub cf1ccdc554 replacing transactions in the mempool is normal behavior, not a warning (#14089) 2022-12-09 20:28:43 -06:00
JeffandGitHub b0fc142878 Bump chia-blockchain-gui to 46d871c5aad2aca0df081ef94c7a4b474dce84bc (#14103)
Includes:
Wording changes for the allowConfirmationFingerprintChange setting
Better handling for WalletConnect errors
2022-12-09 20:27:32 -06:00
81965c6dd5 fix for short option collision (#14100)
* fix for short option collision

* Use coins_to_exclude as variable name

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

* match click with parameter

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-12-09 19:22:57 -06:00
Kyle AltendorfandGitHub 618f93b4c4 handle incoming unknown capabilities (#14093)
* handle incoming unknown capabilities

* move it around

* chia.server.capabilities

* Update tests/util/test_network_protocol_files.py
2022-12-09 18:37:18 -06:00
Arvid NorbergandGitHub d71c8c75a9 add typehints to MempoolManager members (#14058) 2022-12-09 18:36:18 -06:00
dustinfaceandGitHub 8a3ee3f4c0 server: Move api call processing into WSChiaConnection (#14008) 2022-12-09 03:47:46 -06:00
Kyle AltendorfandGitHub f41152559f Add WalletStateManager.get_wallet() to centralize wallet type checking (#14030) 2022-12-08 23:43:42 -06:00
Chris MarslenderandGitHub 0eed79bad4 Ensure bladebit is always included when installers are built for mac (#14092) 2022-12-08 23:42:36 -06:00
Kyle AltendorfandGitHub 9d423d1516 revert delayed pool config handling (#12795, #13154) (#14090)
* Revert "We did not await the async function (#13154)"

This reverts commit 805e18fe0e.

* Revert "add delayed pool config update feature (#12796)"

This reverts commit 99be9be871.
2022-12-08 22:11:55 -06:00
JeffandGitHub 397d703570 Bump chia-blockchain-gui to restore add token functionality and fix NFTDetails exception (#14086) 2022-12-08 15:26:35 -06:00
Amine Khaldi 3590406a45 Merge commit '998ef392d9fd4b42f36eb919c6a158c2159ac02d' into checkpoint/main_from_release_1.7.0_998ef392d9fd4b42f36eb919c6a158c2159ac02d 2022-12-08 21:19:03 +01:00
Amine KhaldiandGitHub 3cade8afd8 Type check mempool_item.py (#14088) 2022-12-08 14:01:46 -06:00
William AllenandGitHub 31ec6a4c81 checkpoint: into main from release/1.7.0 @ b8f6396078 (#14087) 2022-12-08 13:52:26 -06:00
dustinfaceandGitHub 80419cb4f0 tests: Use the self_hostname fixture in more places (#14067) 2022-12-08 11:33:40 -06:00
Amine Khaldi eb25a5daad Merge commit 'b8f6396078f0b6fd00d728d334d1ade59ba43027' into checkpoint/main_from_release_1.7.0_b8f6396078f0b6fd00d728d334d1ade59ba43027 2022-12-08 17:36:53 +01:00
Amine KhaldiandGitHub 2dea800491 Remove redundant checks in validate_spend_bundle() (#14035)
* Simplify addition_amount calculation in validate_spend_bundle() and remove unneeded COIN_AMOUNT_NEGATIVE and COIN_AMOUNT_EXCEEDS_MAXIMUM checks.

* Create a record for the test coin, return it from get_coin_record() and split the tests case by case.

* Add comments next to the unexpected error codes.

* Move the test block record into the fixture function.

* Make it explicit that we're not calling get_coin_record in these tests.

* Also test get_name_puzzle_conditions besides pre_validate_spendbundle.

* Revert testing get_name_puzzle_conditions besides pre_validate_spendbundle.
2022-12-07 22:12:27 -06:00
Earle LoweandGitHub e5d1226613 Cleanup: Add specific error if derivation missing (#14045)
Add specific error if derivation missing
2022-12-07 22:11:57 -06:00
Kyle AltendorfandGitHub 385bf99365 Run pre-commit SQL checks as a module (#14064) 2022-12-07 20:49:46 -06:00
Arvid NorbergandGitHub d330691db1 move mempool tests from full_node to mempool directory (#14056) 2022-12-07 20:49:13 -06:00
Arvid NorbergandGitHub 377f617d1d in profile analysis, treat GetQueuedCompletionStatus() as idle state (#14041)
in profiler analysis, treate GetQueuedCompletionStatus() as idle state
2022-12-07 20:48:40 -06:00
dustinfaceandGitHub 5cc83b8af6 server: Some adjustments related to WSChiaConnection.close_event (#14039)
- Make it non-optional
- Make it private
- Only set it at the end of `WSChiaConnection.close`
2022-12-07 20:48:04 -06:00
Almog De PazandGitHub 4d068f284a dont wait for timeout on None response (#13967)
* dont wait for timeout on None response

* handle return msg by type

* remove empty line

* isort

* improve reply check

* use map to check reply, add has_capability helper

* fix has_capability

* unused import
2022-12-07 20:47:21 -06:00
Arvid NorbergandGitHub 3767012901 fix warning log in header validation (#13944)
fix warning log in header validation printed regardless of how long it took
2022-12-07 20:46:44 -06:00
Kyle AltendorfandGitHub 21cd8305f5 Make --number-of-coins required for the chia coins split CLI (#14072) 1.7.0-rc2 2022-12-07 20:45:38 -06:00
998ef392d9 fix coin selection cli decimal handling & splitting issue (#13908)
* we want to only use new addrs

* change to decimals on coin list output

* Revert "we want to only use new addrs"

This reverts commit 1d7a8f965f.

* resolve duplicate ph's by checking for them when adding them to spend bundle.

* isort

* Update chia/cmds/wallet_funcs.py

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

* clear up code

* Update chia/cmds/coin_funcs.py

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

* remove second loop

* remove unique addresses

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-12-07 20:06:21 -06:00
William AllenandGitHub ed299f38ab checkpoint: into main from release/1.7.0 @ 15e657723a (#14073) 2022-12-07 18:41:09 -06:00
Kyle AltendorfandGitHub b8f6396078 fixup test_did.test_get_info() and .test_update_metadata() (#14061) (#14075) 2022-12-07 18:05:42 -06:00
Jack NelsonandGitHub 88f7040677 add new, optimized tx queue (#13887)
* add new, optimized tx queue

* isort & fix starting index

* make faster

* fix order

* add comment, change to peer id, remove extra apis and change max size

* lint

* final lint fix

* change to simplequeue, get rid of task and change to cursor

* fix logic

* isort

* optimize  cleanup

* add unit tests

* fix comments and switch to random

also add better spacing

* stupid mypy

* undo changes + stupid mypy

* fix tests, raise if full & seperate out peer_id

* get rid of class

* change to simulated tx queue entry

* add local high priority test & remove un necessary asserts

* change to better, faster check

* remove internal asserts

* cleanup test

* Update test_tx_processing_queue.py
2022-12-07 16:03:14 -06:00
Amine Khaldi 7ec8022340 Merge commit '15e657723a4fce5a754c57afc17b24d476fcbfbd' into checkpoint/main_from_release_1.7.0_15e657723a4fce5a754c57afc17b24d476fcbfbd 2022-12-07 16:20:11 +01:00
ChiaMineJP e1e9e96c49 Fixed an issue where label-conflict action did not run when opening a PR 2022-12-07 20:59:30 +09:00
Kyle AltendorfandGitHub 3e74f542b2 fixup test_did.test_get_info() and .test_update_metadata() (#14061) 2022-12-06 23:21:50 -06:00
Kyle AltendorfandGitHub 15e657723a also upload the -cli .deb and .rpm packages to GitHub releases (#14049) 2022-12-06 16:20:57 -06:00
William AllenandGitHub f6a71e294b server: Fix invalid attribute accesses in WSChiaConnection (#14051)
<!-- 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
- Use the prompts below to provide information wherever applicable
-->
<!-- What is the purpose of the changes in this PR? -->



<!-- What is the current behavior?** (You can also link to an open issue
here) -->



<!-- What is the new behavior (if this is a feature change)? -->



<!-- Does this PR introduce a breaking change?** (What changes might
users need to make in their application due to this PR?) -->



<!-- Testing notes (is this code covered by tests, or equivalent manual
testing?) -->



<!-- Are there any visual examples to help explain this PR? (attach any
.gif/movie/console output below) -->


They are not yet discovered by `mypy` because we override `__getattr__`
here
https://github.com/Chia-Network/chia-blockchain/blob/b916275540451ff38b1c2456c294924eea306ac2/chia/server/ws_connection.py#L340

which just returns a coroutine (`Any` by hint) for whatever attribute
you request.

This will be fixed in #14052.
2022-12-06 11:18:50 -06:00
William AllenandGitHub d433420bf6 isort: Remove all tests exceptions and sort the related files (#14018) 2022-12-06 11:18:12 -06:00
William AllenandGitHub bb5760daff checkpoint: into main from release/1.7.0 @ 18b2f27813 (#14054) 2022-12-05 17:08:18 -06:00
Amine Khaldi 7f33a29260 Merge commit '18b2f27813df937f062c5a78b43de5dc83e435f8' into checkpoint/main_from_release_1.7.0_18b2f27813df937f062c5a78b43de5dc83e435f8 2022-12-05 20:16:29 +01:00
JeffandGitHub 18b2f27813 Renamed chia packages to use the @Chia-Network scope Updates build scripts to account for the scope rename (#14050)
Bump chia-blockchain-gui to 83bbca6ff2c425792eb738279ab3876a00322474
1.7.0-rc1
2022-12-05 11:44:43 -06:00
xdustinface cd2589620e Fix passing the error message to ban_peer_bad_protocol 2022-12-05 07:42:02 +01:00