chia-blockchain/tests/core
Kyle Altendorf 55f5e371b3
Block and transaction processing helpers (#11535)
* Block and transaction processing helpers

* flake8

* more and hints

* More

* separate tests of the simulator from tests using the simulator

* move fixture to conftest

* amounts are uint64

* remove unneeded while loop

* backoff instead of fixed sleep times

* .farm_blocks() only forces tx blocks when needed

* fix test_wallet_create_hit_max_send_amount

* fix test_wallet_tx_reorg

* fix test_address_sliding_window

* rename to farm_blocks_to_wallet

* rename to farm_rewards_to_wallet

* undo changes to protocol endpoints

* reword farm_blocks_to_wallet() loop

* rename process_blocks() to farm_blocks_to_puzzlehash() for now

* timeouts

* debug

* debug

* debug... for 3,7

* fix

* up timeout per block to 2 seconds

* increase transaction processing default timeout

* make debug maybe ok to leave around

* tidy

* intersperse sleeps again for wallet progression

* remove debug code

* review tidy

* cheat on uint64() type

* Update tests/simulation/test_simulator.py

* another import fix

* more fixes

* farm_blocks_to_puzzlehash

* more

* tweak

* fix the two-tx-blocks-instead-of-one dilemma

thanks to almog for figuring this out

* fix

* fixup

* rework since it was still broken on 3.7/3.8...

* oops

* yucky timeout

* more timeout

* cleanup todos

* add balance assertion after reorg before resubmission processing

* Apply suggestions from code review

* rename funds to expected_confirmed_balance

* catchup
2022-12-19 16:40:58 -06:00
..
cmds isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
consensus configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
custom_types isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
daemon tests: Fix BlockTools import (#13987) 2022-11-22 22:52:47 -06:00
data_layer Block and transaction processing helpers (#11535) 2022-12-19 16:40:58 -06:00
full_node Merge commit '618f93b4c42b176659cc74c02a4dd711adc62052' into checkpoint/main_from_release_1.6.2_618f93b4c42b176659cc74c02a4dd711adc62052 2022-12-14 19:24:34 +01:00
mempool Create logger object in module instead of passing it in (#14173) 2022-12-16 20:52:47 -06:00
server Merge commit '618f93b4c42b176659cc74c02a4dd711adc62052' into checkpoint/main_from_release_1.6.2_618f93b4c42b176659cc74c02a4dd711adc62052 2022-12-14 19:24:34 +01:00
ssl server: Move api call processing into WSChiaConnection (#14008) 2022-12-09 03:47:46 -06:00
util add system and os dependent timeout adjustments (#13778) 2022-12-15 20:00:00 -06:00
__init__.py split tests 2021-01-12 17:02:22 -05:00
config.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
large_block.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
make_block_generator.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
node_height.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_coins.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_cost_calculation.py Refactor test utils for import availability outside of repo (#13880) 2022-11-15 18:51:05 -06:00
test_crawler_rpc.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_daemon_rpc.py isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
test_db_conversion.py isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
test_db_validation.py Refactor test utils for import availability outside of repo (#13880) 2022-11-15 18:51:05 -06:00
test_farmer_harvester_rpc.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_filter.py isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
test_full_node_rpc.py Add support for pending transactions to get_mempool_item_by_tx_id() #9443 (#13976) 2022-11-22 15:44:11 -06:00
test_merkle_set.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_services.py add system and os dependent timeout adjustments (#13778) 2022-12-15 20:00:00 -06:00
test_setproctitle.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00