Commit Graph
14659 Commits
Author SHA1 Message Date
dustinfaceandGitHub fe321ea488 daemon: Fix server shutdown / wait for it (#14674)
* Create the shutdown event inside `WebSocketServer.__init__`

* Rename `WebSocketServer.start` to `run` and make it a contextmanager
2023-02-28 11:43:24 -06:00
Kyle AltendorfandGitHub 3a5c1a5bd5 hint chia.harvester.harvester, harvester_api (#14690)
* hint chia.harvester.harvester

* hint chia.harvester.harvester_api
2023-02-28 11:42:58 -06:00
Kyle AltendorfandGitHub 0ed70fd534 hint chia.plotting.check_plots (#14691)
* hint chia.plotting.check_plots

* use the hints
2023-02-28 11:42:39 -06:00
Kyle AltendorfandGitHub c29dc05d8b hint chia.pools.pool_config (#14693) 2023-02-28 11:42:20 -06:00
Kyle AltendorfandGitHub 377e95319a hint chia.protocols.pool_protocol (#14695) 2023-02-28 11:42:00 -06:00
Kyle AltendorfandGitHub 44c836f4d4 hint chia.rpc.crawler_rpc_api (#14696) 2023-02-28 11:41:36 -06:00
Kyle AltendorfandGitHub ef22a207e4 hint chia.rpc.farmer_rpc_api, client (#14697) 2023-02-28 11:41:15 -06:00
Kyle AltendorfandGitHub 423689099e add more wallet syncs to test_pool_rpc (#14703) 2023-02-28 11:40:57 -06:00
Kyle AltendorfandGitHub 12ddc928c2 gc.collect() before unlinking the db in some tests (more) (#14702)
https://github.com/Chia-Network/chia-blockchain/pull/14491
https://github.com/python/cpython/issues/97641
2023-02-28 11:40:17 -06:00
Kyle AltendorfandGitHub c5d7339bd5 hint chia.farmer.farmer (#14687)
* hint chia.farmer.farmer

* we will update mypy.ini later
2023-02-28 03:05:08 -06:00
Kyle AltendorfandGitHub 0940b5920a hint and dataclass chia.daemon.keychain_server (#14686)
* hint and dataclass chia.daemon.keychain_server

* we will update mypy.ini later
2023-02-28 03:04:34 -06:00
Kyle AltendorfandGitHub 381d1317de hint chia.cmds.init, chia.cmds.init_funcs (#14682)
* hint chia.cmds.init, chia.cmds.init_funcs

* optional for now at least

* we will update mypy.ini later
2023-02-28 03:04:08 -06:00
Kyle AltendorfandGitHub 4243603b3a hint chia.cmds.db_upgrade_func (#14680)
* hint chia.cmds.db_upgrade_func

* we will update mypy.ini later
2023-02-28 03:03:47 -06:00
Kyle AltendorfandGitHub e0005ce6f9 hint chia.cmds.db (#14679)
* hint chia.cmds.db

* we will update mypy.ini later
2023-02-28 03:03:21 -06:00
Kyle AltendorfandGitHub 73eb73bd4c hint chia.cmds.configure (#14678)
* hint chia.cmds.configure

* we will update mypy.ini later
2023-02-28 03:02:53 -06:00
Kyle AltendorfandGitHub 91a717b5f3 add hinting around get_any_service_client() (#14681) 2023-02-27 23:49:47 -06:00
JeffandGitHub b0241e5b0e Bump chia-blockchain-gui to 71995c6eb722e8d92008e2d3df38fd71f1231171 (#14689)
Includes:
Tooltips added to buttons in the app header
spendCAT WalletConnect command now shows the CAT name/amount instead of XCH
Wallet transaction list column updates
Removed drop shadow from NFT "Update Pending" text in dark mode
NFT gallery: limit NFT selection to 10 when creating an offer
Fix EPERMS issue on Windows when loading NFTs
Absorb non-critical errors from getRemoteFileSize
support restoreMessages npm script on Windows
Updated localizations
Support editing wallet name from layout header
Expand offered fee section by default for imported offers
Expose suppressShareOnCreate as user visible pref in Notifications
Update window title and show an app status header when using testnet
1.8.0-b2
2023-02-27 17:22:47 -06:00
Adam KellyandGitHub 94b60f153f Improve chia wallet check help and diagnostic messages (#14688) 2023-02-27 16:51:34 -06:00
Adam KellyandGitHub 0a6856b498 Fix a DID Wallet issue where an old DID coin causes us to assert during wallet creation (#14668)
* wip

* Change test to reflect current DID Wallet operation

* Typecheck case where we do not know parent yet.
2023-02-27 16:48:10 -06:00
Arvid NorbergandGitHub 5a5cb2e58e simplify fee estimator by not leaking MempoolItem into its interface (#14685) 2023-02-27 16:34:11 -06:00
dustinfaceandGitHub 6b680cf204 tests: Some refactoring of poll_directory and keyring sync tests (#14616)
* tests: Some refactoring of `poll_directory` and keyring sync tests

* Apply review suggestions

* Apply more review suggestions

* Add missing check for file existance
2023-02-27 15:29:13 -06:00
Amine KhaldiandGitHub 37fcafa0d3 Separate mempool item's JSON response value from the internal structure (#14476)
* Separate mempool item's JSON response value from the internal structure.

* Call recurse_jsonify() on the members.
2023-02-27 13:17:49 -06:00
Arvid NorbergandGitHub e195d268fb simplify the mempool filter to only pass in the spend_bundle name (#14665)
simplify the mempool filter to only pass in the spend_bundle name. That's the only thing we use
2023-02-27 12:57:32 -06:00
Kyle AltendorfandGitHub 3943b3ee8b write service groups as lists instead of splitting strings (#14664) 2023-02-27 12:57:03 -06:00
Kyle AltendorfandGitHub 2b96a33c26 correct rate limiting of rate limit log message (#14659) 2023-02-27 12:56:34 -06:00
Arvid NorbergandGitHub 60dacd9f36 remove some redundant fields from MempoolItem (#14652) 2023-02-27 12:56:06 -06:00
Kyle AltendorfandGitHub ff5ef6e073 remove leading newlines from indented code blocks (#14653)
* remove leading newlines from indented code blocks

* catch another one
2023-02-23 21:53:48 -06:00
Kronus91andGitHub 9dcba09dda Extend sign API to support hex string (#14448)
* Extend sign API to support hex string

* handle string input

* Resolve comments

* Fix pre-commit
2023-02-23 21:52:57 -06:00
Amine KhaldiandGitHub 7b6785cb33 Annotate chia/rpc/full_node_rpc_api.py (#14658)
Annotate chia/rpc/full_node_rpc_api.py.
2023-02-23 10:43:42 -06:00
Kyle AltendorfandGitHub f2a6d8decf drop trailing commas in unpacking assignment (#14655) 2023-02-23 10:43:14 -06:00
Kyle AltendorfandGitHub 96dad39392 remove unneeded parentheses (#14654) 2023-02-23 10:42:44 -06:00
dustinfaceandGitHub c098ee9166 full_node: Rename some receive/respond prefixes to add (#14458)
* full_node: Rename `FullNode.resond_block` to `FullNode.add_bock`

The naming `respond_block` is confusing here imo, we have a full node
API method called `respond_block` but here in the `FullNode` class this
method is there to try adding a block to the full nodes's chain so i
think `add_block` is the better choice?

Also change the `respond_block: full_node_protocol.RespondBlock`
parameter to `block: FullBlock` which lets us get rid of many
`full_node_protocol.RespondBlock` wrappings.

* `FullNode.receive_block_batch` -> `FullNode.add_block_batch`

* `receive_unfinished_block` -> `add_unfinished_block` + change parameter

* `FullNode.respond_transaction` -> `FullNode.add_transaction`

* `FullNode.respond_end_of_sub_slot` -> `FullNode.add_end_of_sub_slot`

* `FullNode.respond_compact_vdf` -> `FullNode.add_compact_vdf`

* `respond_compact_proof_of_time` -> `add_compact_proof_of_time`

* `respond_transaction_semaphore` -> `add_transaction_semaphore`
2023-02-23 10:28:29 -06:00
Amine KhaldiandGitHub b019fe5962 Introduce BlockRecordProtocol as a subset of BlockRecord that the mempool manager uses for peak (#14628)
* Introduce BlockRecordProtocol as a subset of BlockRecord that the mempool manager uses for peak.

* Create BenchBlockRecord and use it for benchmarks/mempool.py.

* PR #14611 didn't land yet (keep 3.7 support for now).

* We don't need this guidance anymore.
2023-02-23 01:04:47 -06:00
dustinfaceandGitHub 66d53f415d wallet: Access trusted_peers with a default (#14643) 2023-02-22 17:16:57 -06:00
Kyle AltendorfandGitHub 9e27220d27 avoid excessive logging filter registration (#14638) 2023-02-22 17:16:26 -06:00
Kyle AltendorfandGitHub c678f00acb cleanup adjacent string literals (#14650) 2023-02-22 17:16:07 -06:00
Amine KhaldiandGitHub 3c5507b85f Move imports to the top of the file (#14586)
Move imports to the top of the file.
2023-02-22 13:42:01 -06:00
dustinfaceandGitHub c836093fd5 wallet: Fix sync mode indication (#14524)
* Make `WalletNode.set_sync_mode` an `asynccontextmanager`

* Only fetch the height if debug logs are enabled

* `yield` the start height of the sync context in `set_sync_mode`.
2023-02-22 13:41:36 -06:00
Kyle AltendorfandGitHub 8de40f8299 add nft id to rpcs (#14588)
* add the nft id to the rpc returns

* fixup mypy issue
2023-02-22 12:54:32 -06:00
Arvid NorbergandGitHub ed8cee2b4b Mempool private implementation (#14593)
* fix test asserts to not require the same object, just the same value

* make Mempool's implementation private and give it a public interface

* fixup test that used to count fee *levels* but now count transactions
2023-02-22 12:26:04 -06:00
Arvid NorbergandGitHub 1a722be39b extend and improve the mempool benchmark (#14635) 2023-02-22 12:12:08 -06:00
Arvid NorbergandGitHub 6e6325b1b5 make conditions_for_solution() support untrusted input (#14615)
* make conditions_for_solution able to parse untrusted CLVM structures

* demote as_atom_list() to be a test-only function in test_rom.py, which is the only place it's used now
2023-02-22 12:11:42 -06:00
Kyle AltendorfandGitHub 93fe2f8692 exploring loop test adjustments (#14613)
* exploring loop test adjustments

* simplify the test

* drop unused variable hint
2023-02-22 12:11:06 -06:00
dustinfaceandGitHub 18e88e8476 types: Use IPAddress instead of str in PeerInfo (#14167)
* Use `IPAddress` instead of `str` in `PeerInfo`

* Add comment about `get_host_addr`
2023-02-22 12:03:41 -06:00
Kyle AltendorfandGitHub 41ca9622a3 close the keychain proxy in more failure and cancellation cases (#14415) 2023-02-22 02:51:26 -06:00
dustinfaceandGitHub 0e309d6c6b tests: Merge some fixtures and drop other redundant ones (#14629)
* Drop redundant fixtures in `test_dl_wallet.py`

* Drop `two_wallet_nodes_five_freeze`

Maybe im just not getting it but the `five_freeze` doesn't sound right 
here to me and the fixture does the same as `two_wallet_nodes` so i 
guess we can just drop it?

* Drop `wallet_and_node` fixture

* Drop both `wallet_node` fixtures

The one in `conftest.py` and the one in `test_dl_wallet.py`.

* Drop both `wallet_node` fixtures

The one in `conftest.py` and the one in `test_dl_wallet.py`.

* Drop `wallet_node_sim_and_wallet` fixture

* Drop `wallet_node_simulator` fixture

* Drop `one_wallet_node` fixture
2023-02-21 18:37:33 -06:00
Arvid NorbergandGitHub 23483b6b7b make SpendBundle.additions() count complete cost (#14612)
make SpendBundle.additions() properly account for the cost of computing additions for all spends it contains
2023-02-21 18:37:12 -06:00
Adam KellyandGitHub db19671827 Check Wallet DB integrity (#14401)
* Check Wallet DB integrity

* Update command line help

* Improve duplicate DerivationPath index error message

* Move tests to chia/tests

* lint

* py init file

* Print WalletType names

* Don't complain about wallets not having derivation entries that don't need them

* Validate addresses used in order

* Update tests with new error output

* Fix check_addresses_used_contiguous in the case when the last address of the previous wallet was unused
2023-02-21 18:35:15 -06:00
dustinfaceandGitHub 1094ae21fd tests: Setup 4 nodes in setup_four_nodes (#14630) 2023-02-21 12:26:29 -06:00
Arvid NorbergandGitHub 1d4a3ecce8 Softfork2 infrastructure (#14625)
* add soft-fork2 (to be introduced in 1.8.0)

* update unknown-opcode test
2023-02-21 12:25:47 -06:00