Earle Lowe and GitHub
e07d1eb5de
Use #!/usr/bin/env bash ( #18762 )
...
* Use #!/usr/bin/env bash
* Update setup-poetry.sh
* Use #!/usr/bin/env bash for shebang
* fix up typo for leading space
* For consistency fix up a few other scripts
2024-11-04 15:22:52 -07:00
Matt Hauff and GitHub
2808ee2446
[CHIA-1681] Replace black with Ruff ( #18813 )
...
* Replace black with Ruff
* Change build_network_protocol_files.py
2024-11-04 15:22:18 -07:00
Kyle Altendorf and GitHub
2b19c289a9
make timeloard launcher fail with a non-zero exit code on windows ( #18814 )
...
* make timeloard launcher fail with a non-zero exit code on windows
* Update timelord_launcher.py
2024-11-04 12:35:05 -07:00
Kyle Altendorf and GitHub
6a0344fb0b
only attempt poetry install when not present ( #18811 )
2024-11-04 12:33:51 -07:00
wjblanke and GitHub
d95a5e7cf6
allow backcompat mode for logging ( #18810 )
...
* allow backcompat mode for logging
* fix stdout
2024-11-04 12:33:40 -07:00
Kyle Altendorf and GitHub
bef7a5d763
test more services terminate ( #18807 )
...
* test more services terminate
* tidier
* tidier
* pick an available port for the timelord vdf server as well
* skip timelord launcher on windows
* use port 0 for the api port
* Update test_services.py
* no cover
2024-11-04 12:33:31 -07:00
ChiaAutomation and GitHub
6ba63a2987
Update Managed Files ( #18777 )
...
Update dep-review
2024-11-04 11:44:41 -07:00
Matt Hauff and GitHub
73e4a5bbea
[CHIA-1680] Finish replacing flake8 with Ruff ( #18802 )
...
* Apply ruff unsafe fixes
* Manually fix tuples with `as`
* Remove all references to flake8
2024-11-04 08:59:57 -07:00
Kyle Altendorf and GitHub
5d7a29093c
use brew install --formula ( #18808 )
...
* use `brew install --formula`
to quiet down the warnings
https://github.com/Chia-Network/chia-blockchain/actions/runs/11632671637/job/32408059295#step:13:38
```console
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the `--cask` flag. To silence this message, use the `--formula` flag.
Warning: cmake 3.30.5 is already installed and up-to-date.
To reinstall 3.30.5, run:
brew reinstall cmake
Warning: gmp 6.3.0 is already installed and up-to-date.
```
* Update install-timelord.sh
2024-11-02 16:26:47 -07:00
Kyle Altendorf and GitHub
40c3ccc4ee
reduce 60 minute timeout for single assert ( #18805 )
2024-11-01 16:09:40 -07:00
Arvid Norberg and GitHub
12a089f5f4
[CHIA-1638] Pace block requests ( #18729 )
...
* pace block requests to avoid the peer hitting its response rate limit. Prioritize fast peers over slow ones
* fix mypy warning
* simplify making WSChiaConnection usable as a dictionary key
* address review comments
2024-11-01 12:10:01 -07:00
Matt Hauff and GitHub
0e703e48e0
(Mostly) Replace flake8 with Ruff ( #18801 )
...
* Get flake8 config partially ready
* Mostly remove flake8 config
* Delete arithmetic whitespace ignore
* Delete unused program strings from tests
* Remove unnecessary noqas
* A couple more flake8 warnings
2024-11-01 09:55:16 -07:00
4910323dbc
Replace class_for_type function with a dict ( #18773 )
...
* Pass down `class_for_type` dict instead of global function.
* Simplify
* Update chia/apis.py
Co-authored-by: Kyle Altendorf <sda@fstab.net >
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2024-11-01 09:54:10 -07:00
Matt Hauff and GitHub
efb7a292ed
[CHIA-1679] Replace Pyupgrade with Ruff ( #18795 )
...
* Replace Pyupgrade with Ruff
* Fix python version
2024-10-31 11:56:14 -07:00
Kyle Altendorf and GitHub
68adc506c5
add native linux arm install script testing ( #18776 )
...
* add native linux arm install script testing
* correct
* shorter
* oops
* Update test-install-scripts.yml
2024-10-30 11:26:20 -07:00
Kyle Altendorf and GitHub
920b7405f9
less int(somefloatliteral) ( #18796 )
2024-10-30 09:30:53 -07:00
Kyle Altendorf and GitHub
e60f7f0c1a
explicitly check RpcApiProtocol classes ( #18786 )
2024-10-30 09:29:02 -07:00
Kyle Altendorf and GitHub
79ba87c32d
explicitly check ApiProtocol classes ( #18785 )
2024-10-30 09:28:05 -07:00
Kyle Altendorf and GitHub
6a20ef2bb6
tidy venv usage in install.sh ( #18778 )
...
* tidy venv usage in `install.sh`
* Update install.sh
* Update install.sh
2024-10-30 09:27:53 -07:00
Matt Hauff and GitHub
8f0cd0eab8
[CHIA-1673] Comment out a manual ._finish_sync() call ( #18783 )
...
* Delete a manual `._finish_sync()` call
* Add comment
2024-10-30 09:25:52 -07:00
Kyle Altendorf and GitHub
9e85af6047
remove prompt_yes_no() ( #18755 )
2024-10-30 09:25:27 -07:00
6e13ad1dca
build(deps): bump chiapos from 2.0.4 to 2.0.7 ( #18747 )
...
Bumps [chiapos](https://github.com/Chia-Network/chiapos ) from 2.0.4 to 2.0.7.
- [Release notes](https://github.com/Chia-Network/chiapos/releases )
- [Commits](https://github.com/Chia-Network/chiapos/compare/2.0.4...2.0.7 )
---
updated-dependencies:
- dependency-name: chiapos
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 09:25:13 -07:00
Matt Hauff and GitHub
bea1447adb
[CHIA-1672] Add parsing for JSON formatted spend bundles in /push_tx ( #18764 )
...
Add parsing for JSON formatted spendbundles in `/push_tx`
2024-10-30 11:17:32 -05:00
Matt Hauff and GitHub
e1db6cb452
Replace Isort with Ruff ( #18789 )
...
Replace isort with Ruff
2024-10-29 12:47:40 -07:00
Matt Hauff and GitHub
bc901da0c2
[CHIA-1676] Make ruff an optional dependency ( #18780 )
...
Make ruff an optional dependency
2024-10-29 09:31:43 -07:00
Richard Kiss and GitHub
f126023591
Don't import a wallet file from util. ( #18742 )
...
* Don't import a `wallet` file from `util`.
* coverage
2024-10-29 09:31:25 -07:00
Amine Khaldi and GitHub
11eba04e28
CHIA-1628 Annotate test_network.py ( #18693 )
...
Annotate test_network.py.
2024-10-29 09:31:13 -07:00
Kyle Altendorf and GitHub
6dee78ad63
correct wallet rpc api for get spendable coins with specified excluded coins ( #18768 )
...
correct wallet rpc api for get spendable coins with specified excludied coins
2024-10-28 13:28:05 -07:00
Earle Lowe and GitHub
c252a6415b
Try updating to psutil 6.1.0 ( #18763 )
...
* Try updating to psutil 6.1.0
* merge to origin\main
* Fixes
2024-10-28 13:27:19 -07:00
Amine Khaldi and GitHub
cfab9eb2b3
CHIA-1674 Remove no longer needed get_symmetric_key ( #18770 )
...
Remove no longer needed get_symmetric_key.
2024-10-28 10:31:34 -07:00
Amine Khaldi and GitHub
03a41ac486
CHIA-1668 Move validate_block_merkle_roots next to validate_block_body ( #18757 )
...
Move validate_block_merkle_roots next to validate_block_body.
2024-10-28 10:31:24 -07:00
Matt Hauff and GitHub
6084112d48
[CHIA-1553] Replace pylint with ruff ( #18759 )
...
* Replace pylint with ruff
* poetry
* remove pylint
* Address comments by @altendky
* Undo formatting
* actually undo formatting
2024-10-25 15:55:37 -07:00
wjblanke and GitHub
0354e6e1d3
Keep track of all long sync task references ( #18769 )
...
* keep track of all long sync task references
* List
* flake8
* flake8
* shorten comments... ooof indents
* comment
2024-10-25 14:55:33 -07:00
Kyle Altendorf and GitHub
e2c63db676
remove unnecessary use of .__members__ on ConditionOpcode iteration ( #18767 )
2024-10-25 12:02:26 -07:00
Arvid Norberg and GitHub
2df931bf87
[CHIA-1566] pipeline block validation in sync_from_fork_point() ( #18703 )
...
* make pre_validate_multi_processing() return futures, rather than the awaited and joined results from the thread jobs. This is crucial to allow the validaion jobs to run concurrently with the database interaction in the main thread
* Split up the add_block_batch() function into 3 parts, preparing them to be pipelined in long-sync
* pass AugmentedBlockchain into pre_validate_multiprocessing() and prevalidate_blocks(), to support the augmented blockchain to outlive a single batch
* pipeline pre-validation in sync_from_forkpoint()
* optimize the common case of _reconsider_peak(), to avoid one database lookup
* address review comments
* rename filter_blocks() -> skip_blocks(). It's is only relevant at the start of the sync, add comment and assert
2024-10-25 08:38:23 -07:00
Earle Lowe and GitHub
15d0daf339
Update clvm_tools_rs to 0.1.45 ( #18761 )
2024-10-24 11:53:22 -07:00
Amine Khaldi and GitHub
36d7c0146a
CHIA-1669 Simplify tx_additions and tx_removals in validate_block_merkle_roots ( #18758 )
...
Simplify tx_additions and tx_removals in validate_block_merkle_roots.
2024-10-24 11:52:56 -07:00
Kyle Altendorf and GitHub
030ffddf35
add vpa virtual project package ( #18754 )
2024-10-24 11:52:32 -07:00
Amine Khaldi and GitHub
f4ff9d621e
CHIA-1664 Deduplicate cancel_task_safe ( #18745 )
...
Deduplicate cancel_task_safe.
2024-10-24 11:52:22 -07:00
Kyle Altendorf and GitHub
2588600d1c
more lowercase types such as in comments ( #18737 )
2024-10-24 11:52:10 -07:00
eb68369939
build(deps): bump coverage from 7.6.1 to 7.6.4 ( #18748 )
...
Bumps [coverage](https://github.com/nedbat/coveragepy ) from 7.6.1 to 7.6.4.
- [Release notes](https://github.com/nedbat/coveragepy/releases )
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst )
- [Commits](https://github.com/nedbat/coveragepy/compare/7.6.1...7.6.4 )
---
updated-dependencies:
- dependency-name: coverage
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-23 15:00:03 -07:00
Arvid Norberg and GitHub
8c72d22edf
move add_blocks_in_batches() out of tests ( #18750 )
...
move add_blocks_in_batches() out of tests, since the node simulator depends on it
2024-10-23 08:50:08 -05:00
Arvid Norberg and GitHub
6bbcd2d065
tests as its own subproject ( #18698 )
...
extend virtual_project_analysis to treat all files under chia/_tests as its own subproject. Since the tests depend on the production code,this will prevent production code from depending on tests
2024-10-22 12:16:12 -07:00
Amine Khaldi and GitHub
4f00f639fc
CHIA-1565 Pass a ValidationState to validate_finished_header_block ( #18712 )
...
Pass a ValidationState to validate_finished_header_block.
2024-10-22 12:15:26 -07:00
Arvid Norberg and GitHub
45b08d60e3
Additions removals ( #18741 )
...
* use additions_and_removals() in the request_block_header() full node API. This is slightly faster, and untangles it from the function used for consensus
* use additions_and_removals() instead of get_name_puzzle_conditions() in run_one_block(). We've already validated the block, we just need to recompute the additions and removals
2024-10-22 12:15:07 -07:00
Almog De Paz and GitHub
a80d779fe6
refactor full_node add_block ( #18584 )
...
* refactor
* minor fixes
* fix_tests
* add finish sync to add_blocks_in_batches
* add_blocks_in_batches updates wallets
* test fixes
* fix condition in add_block
* add known block to cache
* restore comment
* remove init file from log dir
* fix failed reorg test
* revert known block info change
* assert height in cat test
* wait for wallet height in nft test
* assert sync all height for all wallets
* test_cat_creation assert height
* rename vars
* assert height in process states
2024-10-22 12:14:18 -07:00
Arvid Norberg and GitHub
f15d0047a2
Move spend_sim.py into tests ( #18743 )
...
* move spend_sim into tests
* use run_block_generator2() instead of get_name_puzzle_conditions() in CostLogger. It's only used to compute the cost of a spend bundle, in tests.
2024-10-22 12:08:40 -07:00
Amine Khaldi and GitHub
690338ef39
CHIA-1663 Simplify duplicate output validation in validate_block_body ( #18744 )
...
Simplify duplicate output validation in validate_block_body.
2024-10-22 12:07:52 -07:00
Kyle Altendorf and GitHub
3b6f547d45
bytes zeros ( #18475 )
...
* `ZERO_32`
* `bytes(\d+)\(\[0\] \* \1\)`
* `bytes(\d+)\(b"\\(x00|0)" \* \1\)`
* `bytes(\d+)\(b"0" \* \1\)`
* Revert "`bytes(\d+)\(b"0" \* \1\)`"
This reverts commit 2d629dcb0a .
2024-10-22 12:07:07 -07:00
df7f87cfee
build(deps): bump diff-cover from 9.0.0 to 9.2.0 ( #18577 )
...
Bumps [diff-cover](https://github.com/Bachmann1234/diff-cover ) from 9.0.0 to 9.2.0.
- [Release notes](https://github.com/Bachmann1234/diff-cover/releases )
- [Changelog](https://github.com/Bachmann1234/diff_cover/blob/main/CHANGELOG )
- [Commits](https://github.com/Bachmann1234/diff-cover/compare/v9.0.0...v9.2.0 )
---
updated-dependencies:
- dependency-name: diff-cover
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 12:06:46 -07:00