Arvid Norberg
425f77375c
Program type fixes ( #17024 )
2023-12-12 13:07:22 -06:00
Arvid Norberg
a457fa28e0
Optional atom fixes ( #17040 )
2023-12-12 13:07:08 -06:00
Kyle Altendorf
65dfbbb6aa
add Service type variables for each combination ( #16970 )
2023-11-30 13:38:38 -06:00
Kyle Altendorf
78740ac353
chia/simulator/setup_nodes.py -> tests/util/setup_nodes.py (#16933 )
2023-11-29 15:17:48 -06:00
Kyle Altendorf
fbdb27bef1
managers for services ( #16670 )
2023-11-16 19:21:12 -06:00
Kyle Altendorf
5484024ef3
move time_out_assert() family back to tests ( #16846 )
2023-11-16 11:20:18 -06:00
Arvid Norberg
038f5e8fb7
Fix deep reorgs ( #16594 )
2023-11-15 10:51:04 -06:00
Amine Khaldi
d054314a18
Move generate_in_memory_db_uri to the chia/util to avoid importing tests from the chia package ( #16752 )
...
Move generate_in_memory_db_uri to the chia/util to avoid importing tests from the chia package.
2023-11-09 09:04:03 -08:00
Arvid Norberg
d2c2b91b30
add test performing a deep reorg with 3 nodes ( #16774 )
...
* increase test_constant BLOCKS_CACHE_SIZE to fit 3 epochs, to better mimic mainnet
* add test performing a deep reorg with 3 nodes, along with various fixes to make it work
2023-11-07 09:08:54 -08:00
Arvid Norberg
95e5b97557
Use bls from chia rs ( #16715 )
...
* replace blspy imports with chia_rs imports for BLS types
* remove blspy-stubs, since we're dropping the blspy dependency. chia_rs has type stubs already
2023-11-07 09:06:52 -08:00
Arvid Norberg
962233137b
make sure we set max_sync_wait to 0 in all tests ( #16771 )
2023-11-06 07:02:12 -06:00
Kyle Altendorf
95ed41da94
more time for plot refreshing in ci ( #16762 )
2023-11-03 11:36:01 -05:00
Matt Hauff
bf4cdf22a5
Port VC lifecycle tests to WalletTestFramework ( #16292 )
2023-11-03 08:30:59 -05:00
Amine Khaldi
97fb769755
Speed up test runs by leveraging in-memory databases within reason ( #16637 )
2023-11-01 10:56:40 -05:00
Arvid Norberg
ca85e485e6
transition away from __bytes__ conversion for fixed-size integers ( #16701 )
2023-10-31 16:57:17 -05:00
Arvid Norberg
f863326d87
harmonize SerializedProgram with Program ( #16694 )
2023-10-26 15:55:10 -05:00
Arvid Norberg
709190bbfd
Sync no farmer ( #16698 )
2023-10-26 15:33:58 -05:00
Felix Brucker and Kyle Altendorf
ef98949a30
Add support for lists of peers in the config ( #16376 )
...
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2023-10-24 12:33:19 -05:00
Kyle Altendorf
90c1441af0
apply pyupgrade --py38-plus --keep-runtime-typing ( #14646 )
2023-10-24 12:01:23 -05:00
Matt
41dde97568
Merge remote-tracking branch 'origin/long_lived/vault' into quex.remove_announcement
2023-10-12 13:49:18 -07:00
Matt
2afa5ce8fe
Remove Announcement class from chia-blockchain
2023-10-11 07:56:20 -07:00
Florin Chirica
33edfa8556
test_services.py flaky test. ( #16518 )
2023-10-10 13:44:50 -05:00
Matt Hauff
0d1318932c
Enhancements to WalletTestFramework ( #16291 )
2023-10-05 16:16:38 -05:00
Earle Lowe
5ea14326c9
Refactor daemon simulation test ( #16081 )
2023-10-04 12:16:13 -05:00
Kyle Altendorf and dustinface
88e2761a5c
merge listen into advertised_port as None ( #15024 )
...
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com >
2023-10-03 20:24:04 -05:00
Kyle Altendorf
f1059bcb44
@dataclass FullNode to avoid risks of instances without attributes set (#1332 )
2023-10-03 14:33:19 -05:00
William Allen
abbf29b974
checkpoint: into main from release/2.1.0 @ 07e2a0b8bb ( #16466 )
...
Source hash: 07e2a0b8bb
Remaining commits: 7
Needs https://github.com/Chia-Network/chia-blockchain/pull/16465 or for
the issues to otherwise be fixed.
2023-10-01 17:05:54 -05:00
Kyle Altendorf
b0491678c9
Merge commit '07e2a0b8bb75d72a4db689289109c69eb8e81234' into checkpoint/main_from_release_2.1.0_07e2a0b8bb75d72a4db689289109c69eb8e81234
2023-09-30 21:04:23 -04: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
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
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
Matt Hauff
d29acde27a
Make the standard wallet return List[TransactionRecord] ( #16360 )
2023-09-19 15:28:20 -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
Kyle Altendorf
cd9d6eff33
add SizedBytes.random()/.secret(), replace token_bytes() usage ( #16276 )
2023-09-14 14:08:01 -05:00
Arvid Norberg
2d7cd8428b
remove CHIP-13 and SOFT_FORK4 ( #16320 )
2023-09-13 14:51:12 -05:00
Kyle Altendorf
e6663c05d8
remove const_dict= parameter from BlockTools() ( #16322 )
2023-09-13 14:13:47 -05:00
Kyle Altendorf
ebcf74d9d9
improve dataclasses.replace() usage to improve hint checking ( #16286 )
2023-09-13 10:25:13 -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
Kyle Altendorf
a2f3232ec2
move using_temp_file_keyring() decorator to test fixtures ( #16296 )
2023-09-11 12:54:03 -05:00
Arvid Norberg and Amine Khaldi
952c2d33a5
extend tests being parametrised by soft-fork ( #15977 )
...
* Make more tests parameterized by conftest.Mode (used for testing forks)
* limit test cases to save CI time
* bump timeouts
* run cat_wallet tests in parallel
* mypy type annotation fix in test_daemon.py
* Bump some wait_for_wallets_synced timeouts.
* remove unused test fixture
* address review comments
* bump datalayer timeout
* disable test_dusted_wallet() test
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org >
2023-09-08 00:22:09 -05:00
Kyle Altendorf
353f12d5a3
commonize signal setup ( #13568 )
...
* commonize signal setup
* add signal setup for async handlers
* future
* Update misc.py
* catch up
* logging
* missed one
* context manager and waiting for signal handlers to complete
* correct logging
* fixup
* fixup
2023-09-06 13:01:11 -05:00
dustinface
d41bca0e75
simulator: Increase duration limit in test_callback of BlockTools ( #16245 )
2023-09-06 01:32:09 -05:00
Arvid Norberg
762d677f7f
Block tools compute cost ( #16231 )
...
* cleanup test by naming constants, and avoid repeating them
* simplify compute_cost_test() function in BlockTools
2023-09-05 14:39:39 -05:00
Almog De Paz
67b3cec8a9
Timelord peak change ( #15856 )
...
* skip if known heavier unfinished block
* change comment
* None check
* None check
* None check
* test known heavier block skip
* rename
* tests
* lint
* fix test
* ccomment out lower weight case
* fix rc_hash check
* refactor check
* add init file
* fix setup_timelord call
* use class for tests
* add config to tests
* more lint
* more lint
2023-09-01 13:13:22 -05:00
Arvid Norberg
ccd715119e
try again a few times if the temporary DB file can't be removed ( #16108 )
...
try again a few times if the temporary DB file can't be removed, during simulation shutdown
2023-08-23 23:02:52 -05:00
Matt Hauff
a545e6a8a7
Introduce TXConfig and CoinSelectionConfig ( #15666 )
...
* Explore TXConfig
* test fixes
* more test fixs
* more test fixs
* Make TXConfig a CoinSelectionConfig subclass
* Move RPC config loading into decorator
* Fix mempool performance test
* Fix wallet sync test
* Fix streamable
* Forgot send_transaction_multi
* Remove potentially_inside_lock change
* Add .override to config object
* A few fixes from review
* Get create_message_spend working with tx_config.reuse_puzhash
* pylint and rebase fixes
* Add tests for CMD loaders
* Add RPC client and tests for cancel_offers endpoint
* Add some coverage
* Fix did test
* Add DID test coverage
* add tests for TXConfig & CoinSelectionConfig
* Add reuse_puzhash to dl wallet test
* Add reuse puzhash to dl_wallet test
* Add test coverage to wallet sync test
* Add more tests for TXConfig
* Add tests for coin_funcs.py
* Add some wallet_funcs tests
* Bad merge
* Fix bad test
* condense cmd tests
* test coverage ignore
* merge fix
* Undo GUI change
* Remove a couple of unused tx_endpoints
* Changes due to (#15846 )
* Merge fixes
* new=True
* Fix the coins tests
* Fix DID tests
* Fix NFT tests
* Fix VC tests
* Fix wallet tests
* Delete now uneccessary tests
* Fix bad change
2023-08-18 14:03:37 -05:00