Freddie Coleman
7a81606bf7
Add new RPC to get block spends with conditions ( #16435 )
...
* add new RPC to get block spends with conditions
* return type
* lint fixes
* chia-blockchain-gui inline with main
* add back check for SOFT_FORK2_HEIGHT
* CoinSpendWithConditions type
* validate all fields in test
* same param type as get_block_spends
* remove unused imports
* use conditions_for_solution to display conditions
* python rpc client returns list of CoinSpendWithConditions
* lint fixes
* code formatting issues
* remove files added by tool
2023-09-30 20:02:39 -05:00
Florin Chirica
a1b17be515
full_sync flake test. ( #16452 )
...
* full_sync flake test.
* Run less.
* Try with path.
* Update test.yml
* Try with 20.
* Try with bigger timeout.
* Rerun.
* try lower limit again..
* lower number?
* rerun.
* 3
* rerun
* Remove stress test.
2023-09-30 20:01:36 -05:00
William Allen
ce9713d19e
checkpoint: into main from release/2.1.0 @ ee09892f06 ( #16462 )
...
Source hash: ee09892f06
Remaining commits: 8
2023-09-30 19:47:04 -05:00
810df50bf6
Dao wallet ( #15559 )
...
Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com >
Co-authored-by: Geoff Walmsley <geoffwalmsley@gmail.com >
Co-authored-by: Geoff Walmsley <5695735+geoffwalmsley@users.noreply.github.com >
Co-authored-by: Karlkim Suwanmongkol <karlkim@gmail.com >
Co-authored-by: Sebastjan Trepca <trepca@gmail.com >
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org >
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2023-09-30 14:24:35 -05:00
Kyle Altendorf
275a19ce51
Merge commit 'ee09892f06e5ff697afde22ec667e6ecad52e888' into checkpoint/main_from_release_2.1.0_ee09892f06e5ff697afde22ec667e6ecad52e888
2023-09-29 19:28:06 -04:00
Amine Khaldi
1690e626e2
Merge commit 'fb2a939606f85c27d31c2ae1fad60789f158984d' into checkpoint/main_from_release_2.1.0_fb2a939606f85c27d31c2ae1fad60789f158984d
2023-09-28 22:38:23 +01:00
William Allen
0730e2eb15
checkpoint: into main from release/2.1.0 @ d2934682ec ( #16446 )
...
Source hash: d2934682ec
Remaining commits: 9
2023-09-28 16:27:05 -05:00
Kyle Altendorf
8ebb31e116
encapsulate SyncStore._backtrack_syncing dict ( #16441 )
2023-09-28 10:36:03 -05:00
Kyle Altendorf
4cdcce0cb2
Merge commit 'd2934682ecc4a96c6b4641e8a68f48d5446787ea' into checkpoint/main_from_release_2.1.0_d2934682ecc4a96c6b4641e8a68f48d5446787ea
2023-09-27 16:29:09 -04:00
Kyle Altendorf
302e7e7f81
use importlib.metadata to get package versions ( #14753 )
...
* use importlib_metadata to get package versions
* ignore untyped call
* stop ignoring the deprecation warning
* Revert "stop ignoring the deprecation warning"
This reverts commit 931fe8c794 .
* include chiapos version data
* tweak
2023-09-27 15:01:08 -05:00
Kyle Altendorf
f75001789d
add try/finally to setup_services context managers ( #16407 )
2023-09-26 14:51:12 -05:00
Kyle Altendorf
185240d15c
hint chia.simulator.setup_services/start_simulator ( #16412 )
2023-09-26 14:49:53 -05:00
Kyle Altendorf
ee087f10ec
hint SSLTestCollateralTracker.in_use ( #16413 )
...
* hint `SSLTestCollateralTracker.in_use`
* kw_only=True
* in use not available via init
2023-09-26 14:49:06 -05:00
Kronus91
9429359770
Extend sign APIs for customized puzzle ( #16327 )
...
* Extend sign APIs
* Fix coverage
2023-09-26 14:48:51 -05:00
Jeff
58ad8b8f09
Fix CAT --> CR-CAT wallet conversion ( #16423 )
...
* Fix CAT --> CR-CAT wallet conversion
* Placate a grumpy mypy
2023-09-26 11:42:03 -05:00
Matt Hauff
867b55097e
Fix issue with trade failures ( #16415 )
2023-09-25 20:42:44 -05:00
wjblanke
07e2a0b8bb
Wallet workaround for python issue 97641 and update anyio for issue 589 ( #16408 )
...
* add arvid's fix to wallet as well
* update anyio to 4.0.0
2023-09-25 20:36:44 -05:00
Kyle Altendorf
ee09892f06
rename chia data add_missing_files -f/--foldername to -d/--directory ( #16383 )
2023-09-25 19:17:41 -05:00
Arvid Norberg
fb2a939606
fix typo in PendingTxCache ( #16417 )
...
fix typo in PendingTxCache when evicting the last MempoolItem of an assert-height level. add test coverage
2023-09-25 18:29:30 -05:00
xchdata.io
d2934682ec
Fix chia farm summary aborting early if no local full node present ( #16387 )
...
* Fix `chia farm summary` aborting early if no local full node present
Before 2.0, even if no local full node was present, `chia farm summary`
would still show useful information:
$ chia farm summary
Farming status: Not available
Local Harvester
1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective)
Plot count for all harvesters: 1
Total size of plots: 101.320 GiB, 101.400 GiBe (effective)
Estimated network space: Unknown
Expected time to win: Unknown
For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show'
However, since 2.0, that is no longer the case. `chia farm summary`
simply aborts with an exception:
$ chia farm summary
Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)]
Check if full node rpc is running at 8555
This is normal if full node is still starting up
This fixes this particular regression which is rather annoying for
farmers farming to a remote node.
Fixes #16164 . Related to issue #9615 , but that issue is wider in scope.
* Improve exception reporting for `chia farm summary`
With this change, only the exceptions when failing to connect to a local
full node and/or wallet are suppressed, as these cases are already
properly handled by adjusted command output. Any other exception is
printed to stderr.
2023-09-25 16:35:55 -05:00
Matt Hauff
b89aa407de
Fix condition serialization in RPC client ( #16389 )
...
* Add json serialization for Condition classes
* Fix condition serialization in RPC client
2023-09-25 12:43:52 -05:00
Matt Hauff and Kyle Altendorf
a27b708020
Add RPC Client context manager ( #16289 )
...
* Refactor simulator setups from async generators to async context managers
* Fix setup_services as well
* Make _inner functions context managers as well
* whoops
* Remove unused fixtures
* address comments by @arvidn
* astack -> async_exit_stack
* bad merge function removal
* Add better generalized wallet test framework
* Add RPC Client context manager
* Bad merge
* pre-commit
* Remove trusted parametrization test
* Change request type
* Move to class method
* clone create args for type safety
* Fix return argument for inheritance
* Stylistic concerns
* Use kwargs
Co-authored-by: Kyle Altendorf <sda@fstab.net >
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2023-09-21 15:03:45 -05:00
Kyle Altendorf
16b9d53782
mypy 1.5.1 ( #16352 )
2023-09-20 15:10:17 -05:00
Matt Hauff
d29acde27a
Make the standard wallet return List[TransactionRecord] ( #16360 )
2023-09-19 15:28:20 -05:00
Chris Marslender
c29786be6a
checkpoint: into main from release/2.1.0 @ 018e812d85 ( #16362 )
2023-09-18 15:44:17 -05:00
Matt Hauff
b981c2a57e
Return TransactionRecord from create_message_spend ( #16290 )
2023-09-18 14:57:47 -05:00
Amine Khaldi
d8480b286f
Merge commit '018e812d85911489901dee7e83cdaf0252493bb0' into checkpoint/main_from_release_2.1.0_018e812d85911489901dee7e83cdaf0252493bb0
2023-09-18 19:52:31 +01:00
Kyle Altendorf
dbf114a524
move pyinstaller.spec out of the package into build_scripts/ ( #16342 )
2023-09-18 11:29:06 -05:00
Kyle Altendorf
40cddbdf76
fix runtime type risk in parse_timelock_info() ( #16345 )
2023-09-18 11:28:30 -05:00
Matt Hauff
018e812d85
Add extra_conditions to special offer making ( #16340 )
2023-09-15 21:00:57 -05:00
Arvid Norberg
0c56e8f7af
Better timestamps on simulated chains ( #16326 )
2023-09-15 21:00:08 -05:00
Kyle Altendorf
36070fb19a
more (more) uint*() ( #16324 )
2023-09-15 11:35:21 -05:00
Matt Hauff
fc66f43f8a
Remove tx_endpoint from select_coins ( #16325 )
2023-09-14 17:00:01 -05:00
Arvid Norberg
540747fae1
ban peers for 10 minutes when violating consensus rules ( #16323 )
2023-09-14 14:08:18 -05:00
Kyle Altendorf
cd9d6eff33
add SizedBytes.random()/.secret(), replace token_bytes() usage ( #16276 )
2023-09-14 14:08:01 -05:00
Matt Hauff
b6dae184a1
Add valid_times to Offer object ( #16255 )
2023-09-13 20:07:18 -05:00
Arvid Norberg
2d7cd8428b
remove CHIP-13 and SOFT_FORK4 ( #16320 )
2023-09-13 14:51:12 -05:00
Kyle Altendorf
06c7382cd4
send --fix-ssl-permissions to stderr ( #15972 )
2023-09-13 14:15:11 -05:00
Kyle Altendorf
e6663c05d8
remove const_dict= parameter from BlockTools() ( #16322 )
2023-09-13 14:13:47 -05:00
Kyle Altendorf
e9ac7ea610
apply uint*() more ( #16287 )
2023-09-13 10:48:06 -05:00
Kyle Altendorf
ebcf74d9d9
improve dataclasses.replace() usage to improve hint checking ( #16286 )
2023-09-13 10:25:13 -05:00
dustinface
bc83010c92
wallet: Drop unused methods in wallet_sync_utils.py ( #16277 )
2023-09-13 08:27:14 -05:00
dustinface
2a1e3ae2fc
full_node: Move wallet updates into a separate task ( #16238 )
2023-09-13 08:26:47 -05:00
Matt Hauff
d7e9090122
Add ergonomic timelock parsing to RPCs ( #16054 )
2023-09-12 14:16:48 -05:00
Izumi Hoshino
4278760924
Bladebit Hybrid disk mode ( #16208 )
2023-09-12 13:54:04 -05:00
Matt Hauff
efff83e7be
Add timelock information to Trades and Transactions ( #15915 )
2023-09-12 11:28:01 -05:00
Arvid Norberg
fd51693ba0
run_block_generator2() ( #16241 )
2023-09-12 11:27:37 -05:00
Matt Hauff
13eaf1fd10
Refactor simulator setups from async generators to context managers ( #16126 )
2023-09-12 10:01:28 -05:00
dustinface
e9b5937dce
wallet: Drop is_peer_synced / More cache usage ( #16261 )
2023-09-11 17:52:43 -05:00
Geoff Walmsley
315d79e5b7
max_coin_amount should default to None in walllet send command ( #16303 )
2023-09-11 15:43:50 -05:00