Commit Graph

11448 Commits

Author SHA1 Message Date
Matt Hauff
f4f1528058
Add traceback to front-end error responses (#16280) 2023-09-07 15:31:44 -05:00
Amine Khaldi
099abe4c36
checkpoint: into main from release/2.0.1 @ e66f3a9876 (#16281)
Updating changelog (#16264)

* Updating changelog

* Updating changelog

* Referencing issue

Co-authored-by: William Allen <wallentx@users.noreply.github.com>
2023-09-07 15:31:28 -05:00
Kyle Altendorf
5cf8d2f27f
report bad @pytest.mark.limit_consensus_modes() use with fixtureless tests (#16224)
report bad `@pytest.mark.limit_consensus_modes()` use fixtureless tests
2023-09-07 14:33:23 -05:00
Kyle Altendorf
1c5b469c5b
more ws message type awareness in the deamon (#15797) 2023-09-07 14:05:57 -05:00
Kyle Altendorf
d3f2dfaa1e
log traceback for sync from fork point failed (#16221) 2023-09-07 14:04:14 -05:00
Amine Khaldi
65c7b5878e
Invoke python instead of python3 consistently in pre-commit flows (#16263)
Invoke python instead of python3 consistently in pre-commit flows.
2023-09-07 11:36:08 -05:00
Kyle Altendorf
0b552d3e5a
chiavdf==1.0.11 for setuptools fix (#16278) 2023-09-07 10:19:56 -05:00
Florin Chirica
9071480b4e
Add --verbose option to data create_data_store and limit default output to the store id (#16110)
* Cleanup create_data_store.

* Use indent.

* Typo.

* Lint.

* Call tests with verbose.

* add back in fingerprint from cross-merge stuff

---------

Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-09-06 18:56:29 -05:00
Florin Chirica
8cc32ed213
Delete DL files on unsubscribe. (#16182)
* Delete files on unsubscribe.

* Handle none case.

* Fix test.

v

* typo

* Lint.

* Update chia/data_layer/data_layer.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Apply suggestions from code review

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* rewiew comments.

* review

* Update test_data_rpc.py

* Lint.

* Fix conflict.

* Add retain option.

* Fix test.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-09-06 18:48:50 -05:00
Kyle Altendorf
731ded3923
reference SHA in coverage diff comment (#16269) 2023-09-06 17:57:12 -05:00
Kyle Altendorf
1bbfcfaf89
add new plugins: config allowing for custom headers (#16194)
* add new `plugins:` config allowing for custom headers

* add a test
2023-09-06 17:42:25 -05:00
Kronus91
3c81911b37
Optimize NFT coin_added (#16227)
* Optimize NFT coin_added

* Resolve comments

* Resolve comment

* Resolve comments
2023-09-06 17:28:32 -05:00
Kronus91
3f09054548
Optimize CAT coin_added (#16226)
* Optimize CAT coin_added

* Remove TODO
2023-09-06 17:28:00 -05:00
Chris Marslender
e3f4368c5c
Update all remaining glue calls to use the ${{ env.VAR }} syntax for accessing env vars (#16267) 2023-09-06 12:57:39 -06:00
William Allen
b475ad86f5
checkpoint: into main from release/2.0.1 @ 27ccd9a86d (#16266)
Source hash: 27ccd9a86d
Remaining commits: 1
2023-09-06 13:35:04 -05:00
Kyle Altendorf
53ab002502
@dataclass for DataLayer (#16204)
* `@dataclass` for `DataLayer`

* stop hashing `DataLayer`

* conditional shutdowns

* default for `none_bytes`

* separate

* Update chia/data_layer/data_layer.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Revert "separate"

This reverts commit 680d2833e4.

* default `._server`

* non-optional subscription lock

---------

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2023-09-06 13:01:46 -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
Kyle Altendorf
fba4a79db6
xfail core.server.test_loop.test_loop() (#16260)
Being worked on in https://github.com/Chia-Network/chia-blockchain/pull/16207.
2023-09-06 13:00:38 -05:00
dustinface
cd1d22d29b
wallet: Fix and improve untrusted race caching (#16239) 2023-09-06 13:00:25 -05:00
dustinface
4ee7fe27be
wallet: Refactor new_peak in WalletStateManager and PoolWallet (#16262) 2023-09-06 12:59:55 -05:00
Amine Khaldi
a91f90b36b
Merge commit '27ccd9a86dab07f665820e1ed2e6a6e76c059c72' into checkpoint/main_from_release_2.0.1_27ccd9a86dab07f665820e1ed2e6a6e76c059c72 2023-09-06 17:23:35 +01:00
William Allen
22b2a31374
checkpoint: into main from release/2.0.1 @ 861629ae9c (#16265)
Source hash: 861629ae9c
Remaining commits: 1
2023-09-06 11:22:02 -05:00
Amine Khaldi
4206def663
Merge commit '861629ae9ca28db83834d547994a79042ff0eefe' into checkpoint/main_from_release_2.0.1_861629ae9ca28db83834d547994a79042ff0eefe 2023-09-06 17:06:46 +01:00
dustinface
d41bca0e75
simulator: Increase duration limit in test_callback of BlockTools (#16245) 2023-09-06 01:32:09 -05:00
Earle Lowe
27ccd9a86d
Fix issue with GUI and chia plotters when making compressed plots (#16232)
* don't pass in no-direct-downloads on false

* Remove no-direct-downloads

* Remove no-direct-downloads
2023-09-05 15:46:11 -05:00
Arvid Norberg
bd165ddf2a
remove unused test-blocks fixture (#16228)
remove unused test-blocks fixture. We also don't have these blocks in the test-cache repository
2023-09-05 14:40:08 -05:00
Arvid Norberg
3cfd6c9fc7
add _run() method to Program (#16229) 2023-09-05 14:39:52 -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
Chris Marslender
861629ae9c
Installer Workflow Updates (#16248)
* Update remaining references to installer upload keys to OIDC provider (#16015)

* Fix var syntax on glue notifications for windows (#16202)
2023-09-05 14:38:41 -05:00
Kyle Altendorf
7df9599b1a
increase data store batch insert benchmark limit from 19s to 24s (#16235)
increate data store batch insert benchmark limit from 19s to 24s

https://github.com/Chia-Network/chia-blockchain/pull/16234

https://docs.google.com/spreadsheets/d/1AnyhNvJ2ZcqDqHu-4bzTo9XRjIrhcllmEGiGRbzYY8Y/edit#gid=0
2023-09-05 10:12:57 -05:00
Chris Marslender
830134045c
Update build images, python versions, sqlite versions, node versions (#16203)
* Consolidate amd64/arm64 .deb installer workflow to one matrix

* Python + node version update on mac

* Update rpm to latest image + python version

* Update windows python + node version

* Quote all the python versions

* Fix node for .debs

* update to npx for rpm

* Mark workspace safe for rpm

* Use npx for node tools on mac

* npx on windows for node tools

* Set skip package install for rpm

* Revert "Set skip package install for rpm"

This reverts commit f8c5211f8b793fa7e4921a60f5eef5c28ee28868.

* skip-system-installs
2023-09-05 10:10:38 -05:00
dustinface
9d97d28094
tests: Fix flaky test_complex_nft_offer[royalty_pts2-False] (#16218) 2023-09-05 08:47:25 -05:00
dustinface
28f007aafd
tests: Fix a BlockCache instance in test_weight_proof_extend_new_ses (#16217) 2023-09-05 08:47:11 -05:00
dustinface
350534bf4f
server: Drop unused send messages (#16215)
* Drop unused `WSChiaConnection.send_messages`

* Drop unused `WSChiaConnection.send_to_others`
2023-09-05 08:46:51 -05:00
dustinface
d0c00937b9
full_node: Stop updating wallets during long sync (#16062) 2023-09-05 08:46:17 -05:00
AN Long
ac74db4b17
Fix max-line-lengh for pylint (#15706) 2023-09-01 17:50:24 -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
Amine Khaldi
09f5873eb5
Adapt some tests to the recent limit_consensus_modes mark (#16220)
Adapt some tests to the recent limit_consensus_modes mark.
2023-09-01 12:17:10 -05:00
Earle Lowe
f5f9138470
Increase peak timeout due to slow runners (#16213) 2023-08-31 20:17:55 -05:00
Kyle Altendorf
2ca2fd8a99
add -s passthrough for .github/actions/install/ (#16205)
* add -s passthrough for .github/actions/install/

* default to not doing system updates

* Update test-install-scripts.yml

* hmm

* Update action.yml

* Update test-install-scripts.yml
2023-08-31 15:15:09 -05:00
Amine Khaldi
a767c9b58e
Adapt recent full sync tests to ConsensusMode (#16209)
Adapt recent full sync tests to ConsensusMode.
2023-08-31 15:14:57 -05:00
Amine Khaldi
929fe7f359
Add some tests related to the state of the height-to-hash cache file (#16147)
* Add some tests related to the state of the height-to-hash cache file.

* Simplify checking the no difference case.

* Use Path.stat() where we don't need to read the file contents for comparison, just the size and mtime.

* Separate cache file tests into their own test functions.

* Use open instead of aiofiles, and delete from full_blocks instead of dropping the table and recreating it.

* Bring back content checking in the nothing new to write case.
2023-08-31 12:45:03 -05:00
Kronus91
3a82aacbbe
Prevent redundant peer calls in coin_added (#15735)
* Refine coin_added

* Resolve comments

* Fix assert

* Fix pre-commit

* Resolve comments

* Resolve comments

* Resolve comments

* Resolve comment

* Add todo

* Add generic

* resolve comment

* Fix cat

* Resolve comments

* Fix test
2023-08-31 12:42:30 -05:00
Earle Lowe
1463f0c84e
override class variables in limits tests in order to speed up test (#16183)
override class variables to speed up test
2023-08-31 12:42:20 -05:00
Karlkim Suwanmongkol
0a6719403e
Add a full node RPC endpoint, get_mempool_items_by_coin_name (#16019)
* get_mempool_items_by_coin_name

* use match parameter to check exception value
2023-08-31 12:17:20 -05:00
dependabot[bot]
b02fdfae0a
build(deps): bump filelock from 3.12.2 to 3.12.3 (#16192)
Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.12.2 to 3.12.3.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.12.2...3.12.3)

---
updated-dependencies:
- dependency-name: filelock
  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>
2023-08-31 12:07:48 -05:00
Amine Khaldi
4c592f209f
Optimize and simplify farmer RPC get_signage_point() (#15472)
Optimize and simplify farmer RPC get_signage_point().
2023-08-31 12:05:42 -05:00
Amine Khaldi
33c923034e
Rename Mode enum to ConsensusMode (#15794)
Rename Mode enum to ConsensusMode.
2023-08-31 12:05:25 -05:00
Chris Marslender
9b12032494
Fix var syntax on glue notifications for windows (#16202) 2023-08-31 10:32:48 -05:00
Almog De Paz
d966f3f9e6
Add bad peak cache (#16027)
* add and check bad peak hash

* move check

* refactor, add tests, change cache to Dict

* pr fixes

* fix bad f-string

* refactor chip-0013 errors

* limit cache size, add size to constants

* test cache invalidation fix invalidation bug

* fix off by one

* move cache size to config

* remove bt conf override

* use get_peers_with_peak

* fix expected exception in test_soft_fork4_activation
2023-08-30 13:27:22 -05:00