Commit Graph

10447 Commits

Author SHA1 Message Date
Kyle Altendorf
44c836f4d4
hint chia.rpc.crawler_rpc_api (#14696) 2023-02-28 11:41:36 -06:00
Kyle Altendorf
ef22a207e4
hint chia.rpc.farmer_rpc_api, client (#14697) 2023-02-28 11:41:15 -06:00
Kyle Altendorf
423689099e
add more wallet syncs to test_pool_rpc (#14703) 2023-02-28 11:40:57 -06:00
Kyle Altendorf
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 Altendorf
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 Altendorf
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 Altendorf
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 Altendorf
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 Altendorf
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 Altendorf
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 Altendorf
91a717b5f3
add hinting around get_any_service_client() (#14681) 2023-02-27 23:49:47 -06:00
Jeff
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
2023-02-27 17:22:47 -06:00
Adam Kelly
94b60f153f
Improve chia wallet check help and diagnostic messages (#14688) 2023-02-27 16:51:34 -06:00
Adam Kelly
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 Norberg
5a5cb2e58e
simplify fee estimator by not leaking MempoolItem into its interface (#14685) 2023-02-27 16:34:11 -06:00
dustinface
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 Khaldi
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 Norberg
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 Altendorf
3943b3ee8b
write service groups as lists instead of splitting strings (#14664) 2023-02-27 12:57:03 -06:00
Kyle Altendorf
2b96a33c26
correct rate limiting of rate limit log message (#14659) 2023-02-27 12:56:34 -06:00
Arvid Norberg
60dacd9f36
remove some redundant fields from MempoolItem (#14652) 2023-02-27 12:56:06 -06:00
Kyle Altendorf
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
Kronus91
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 Khaldi
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 Altendorf
f2a6d8decf
drop trailing commas in unpacking assignment (#14655) 2023-02-23 10:43:14 -06:00
Kyle Altendorf
96dad39392
remove unneeded parentheses (#14654) 2023-02-23 10:42:44 -06:00
dustinface
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 Khaldi
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
dustinface
66d53f415d
wallet: Access trusted_peers with a default (#14643) 2023-02-22 17:16:57 -06:00
Kyle Altendorf
9e27220d27
avoid excessive logging filter registration (#14638) 2023-02-22 17:16:26 -06:00
Kyle Altendorf
c678f00acb
cleanup adjacent string literals (#14650) 2023-02-22 17:16:07 -06:00
Amine Khaldi
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
dustinface
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 Altendorf
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 Norberg
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 Norberg
1a722be39b
extend and improve the mempool benchmark (#14635) 2023-02-22 12:12:08 -06:00
Arvid Norberg
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 Altendorf
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
dustinface
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 Altendorf
41ca9622a3
close the keychain proxy in more failure and cancellation cases (#14415) 2023-02-22 02:51:26 -06:00
dustinface
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 Norberg
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 Kelly
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
dustinface
1094ae21fd
tests: Setup 4 nodes in setup_four_nodes (#14630) 2023-02-21 12:26:29 -06:00
Arvid Norberg
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
Arvid Norberg
b48c91618f
require npc_result to be set in mempool items added to the mempool (#14624) 2023-02-21 12:25:22 -06:00
Kyle Altendorf
c71fcc0da0
handle ._get_extra_info() call on a closing connection (#14618)
* handle ._get_extra_info() call on a closing connection

* or just return none

* don't check if the transport is closing

* or have to catch an exception
2023-02-21 01:15:32 -06:00
William Allen
99abc2d66f
Remove leading / from endpoint (#14620)
* Remove leading / from endpoint

* Remove leading / from endpoint on all
2023-02-18 21:20:26 -06:00
Kyle Altendorf
4e34ff7982
fixup test_agg_sig_unsafe() softfork fixture usage (#14597) 2023-02-16 19:54:16 -06:00
Jeff
356c5e114e
Bump chia-blockchain-gui to 9ea8e1a4ccb38947d2d645915cb9361dac01c014 (#14602)
Includes:
support showing memos for inbound transactions when expanding the txn row
fix nft royalties bug on create offer page (#1476)
2023-02-16 19:21:07 -06:00