Matt Hauff and GitHub
40db4635a8
[LABS-245] Enable PEP604 Ruff rules ( #20269 )
...
* Enable PEP604 Ruff rules
* Fix harcoded signature in test
* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
Kyle Altendorf and GitHub
9c8557a1f8
Remove Python 3.8 support and update source to 3.9 standards ( #18687 )
...
* manual python 3.8 removals
* poetry
* pyupgrade
* black
* isort
* manually tidy imports
* work around shadowed type
* catch up build network protocol files for pyupgrade changes
* placate pylint
* re-enable 20.04
* placate flake8
2024-10-16 14:21:15 -07:00
74b14cee2a
[CHIA-299] DL separate DAT files in folders by store id ( #17688 )
...
* DL separate files by folder.
* Checkpoint.
* Lint.
* Fix http download args.
* Refactor.
* Fix bug.
* Syntax error.
* Fix bug.
* Lint.
* Add test.
* Add S3 change too.
* Lint.
* Fix bug.
* Fix merge conflict properly.
* Merge conflict.
* Merge conflict.
* Lint.
* Fix bug.
* Fix test post merge.
* Lint.
* Try to fix windows test.
* Coverage.
* Lint.
* Lint.
* Lint.
* Checkpoint have enable config option.
* Lint.
* Lint.
* Fix some tests.
* Fix test.
* Try to fix windows.
* Apply suggestions from code review
Co-authored-by: Kyle Altendorf <sda@fstab.net >
* Update test_data_store.py
* Address some comments.
* Try with new syntax.
* Refactor.
* Lint.
* Lint.
* Try with overload.
* Lint.
* use ClientTimeout for timeout
* change timeout to ClientTimeout
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
Co-authored-by: Earle Lowe <e.lowe@chia.net >
2024-08-01 16:38:49 -07:00
Matt Hauff and GitHub
3637bd33c6
Delete chia.util.misc ( #18170 )
...
* Move VersionedBlob to chia.util.streamable
* Move format_bytes to chia.cmds.cmds_util
* Move format_minutes to chia.cmds.cmds_util
* Move prompt_yes_no to chia.cmds.cmds_util
* Move get_list_or_len to from chia.plot_sync.receiver
* Move validate_directory_writable to chia.cmds.cmds_util
* Move *termination_signals to test_services
* Move UInt*Range to chia.util.streamable
* Create chia.util.batches
* Create chia.server.signal_handlers
* Create chia._tests.util.split_managers
* Move ValuedEvent to chia.types.transaction_queue_entry
* Move available_logical_cores to chia.util.cpu
* Move caller_file_and_line to chia._tests.util.misc
* Move satisfies_hint to chia._tests.wallet.test_singleton_lifecycle_fast
2024-06-18 08:27:17 -05:00
Kyle Altendorf and GitHub
90c1441af0
apply pyupgrade --py38-plus --keep-runtime-typing ( #14646 )
2023-10-24 12:01:23 -05:00
Kyle Altendorf and GitHub
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 and GitHub
ff5ef6e073
remove leading newlines from indented code blocks ( #14653 )
...
* remove leading newlines from indented code blocks
* catch another one
2023-02-23 21:53:48 -06:00
dustinface and GitHub
8cdb431064
data_layer: Use WebServer in DataLayerServer ( #13546 )
...
* Don't wait on shutdown inside `start`
* `stop` -> `close`
* Use `WebServer`
2022-10-03 14:43:30 -05:00
Kyle Altendorf and GitHub
3b084a165b
configure isort to add the future annotations import ( #13327 )
...
* configure isort to add the future annotations import
* apply the new isort setting
* remove type ignores for new mypy (#13539 )
https://pypi.org/project/mypy/0.981/
* another
2022-09-30 03:40:22 -05:00
Kyle Altendorf and GitHub
81837a9e1c
Refactor away from post init for UPnP ( #11837 )
...
* Refactor away from post init for UPnP
* refactor UPnP to not be reusable
* update upnp in datalayer too
* add if_needed parameter to UPnP.shutdown()
* simpler
* be more lenient about startup failures, like before
* too many ways for UPnP to fail right now, revert to a smaller refactor approach instead of fixing them all up
2022-09-26 11:19:33 -05:00
Kyle Altendorf and GitHub
e73f6ddb56
fill_missing_services=True for data layer server https ps mirror ( #13283 )
2022-09-01 19:05:02 -05:00
1fdacc75a7
Decouple atari server. ( #13065 )
...
* Checkpoint decouple atari server.
* Add click cli.
* Lint.
* Remove run_server.
* Updates to DL HTTP service
* Lint - config parameter optional with default
* changes based on comments
Co-authored-by: Earle Lowe <e.lowe@chia.net >
2022-08-31 15:55:50 -05:00
Kyle Altendorf and GitHub
303c7e0eb0
clarify comment in DataLayerServer.stop() ( #13216 )
2022-08-30 02:59:35 -05:00
Kyle Altendorf
86ae361a2f
apply isort to atari
2022-07-31 21:10:56 -07:00
Amine Khaldi
abf44e7f22
Reflect the fact that chia.server.upnp.UPnP is hinted now.
2022-07-16 22:17:48 +01:00
Florin Chirica and GitHub
f02785cc5f
oooops.
2022-06-13 16:26:47 +03:00
Florin Chirica and GitHub
bf6550fc4e
Merge branch 'long_lived/atari' into fc.new_server
2022-06-08 15:08:05 +03:00
Kyle Altendorf
e1657483e1
atari - type ignore revisit
2022-06-07 13:50:43 -04:00
Florin Chirica
505ca7ff7f
Force format on server files.
2022-06-07 17:54:15 +03:00
Florin Chirica
41fcd94c9c
Address some review comments.
2022-06-06 20:32:12 +03:00
Kyle Altendorf
46b1b3e575
avoid import and import from of aiohttp
2022-05-12 19:33:16 -04:00
Florin Chirica
8cc7ec6552
Use defaults for client/server files.
2022-04-07 17:55:02 +03:00
Florin Chirica
473aeb4412
Try to fix lint again.
2022-04-06 21:00:13 +03:00
Florin Chirica
14733f7934
Some fixes.
2022-04-06 20:44:51 +03:00
Florin Chirica
346cdef48a
Try to fix linter.
2022-04-06 20:01:53 +03:00
Florin Chirica
e021220f15
Merge branch 'atari' into fc.new_server
2022-04-06 18:15:08 +03:00
Florin Chirica
7726a74abd
Add HTTP server code.
2022-04-06 17:48:34 +03:00
Florin Chirica
e403daaa3b
New checkpoint.
2022-03-21 20:35:48 +02:00
Florin Chirica
36daffa8e7
Fix test.
2022-03-15 15:37:28 +02:00
Florin Chirica
4e161cf56e
Checkpoint deltas.
2022-03-15 14:46:05 +02:00
Florin Chirica
349a71edaf
Store only batch.
2022-03-11 18:31:15 +02:00
Florin Chirica
31b92c4cd7
Checkpoint new server.
2022-03-09 15:35:14 +02:00
Earle Lowe
e4f5b88d27
Update some defaults and add upnp
2022-03-02 12:53:23 -08:00
Florin Chirica
0723f59e98
Link Data Layer Server.
2022-02-09 20:58:38 +02:00
Florin Chirica
c80e5bfb4b
Tweak ws params.
2022-02-03 16:10:21 +02:00
Florin Chirica
94fb925df8
Return subtree only in LATEST mode.
2022-01-27 22:29:43 +02:00
Florin Chirica
e32950c3bc
Fix bugs.
2022-01-27 20:11:30 +02:00
Florin Chirica
cc32f6a61a
Checkpoint.
2022-01-26 18:32:37 +02:00
284472e0f5
Simple client/server atari. ( #9555 )
...
* Initial commit client/server atari.
* Lint.
* Oops.
* Respect foreign key constrains.
* flake8.
* Checkpoint big data layer.
* Lint.
* Improve get_ancestors.
* Check root hash doesn't change while downloading.
* Disable sanity check.
* Remove hash from JSON.
* Log better.
* Fix get ancestors.
* WIP download history.
* Address some review comments.
* Refactor get_operations.
* Fix bug.
* Add test.
* RECURSIVE query.
* Lint.
* Apply suggestions from code review
Co-authored-by: Kyle Altendorf <sda@fstab.net >
* Address review comments.
* Remove optimizations for this PR.
* flake8.
* Change to websockets.
* mypy.
* Make everything more configurable.
* Save history.
* Remove debug data.
* Fix function name post rebase.
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2022-01-23 10:34:49 -08:00