651 Commits
Author SHA1 Message Date
Arvid Norberg 65ef0f4ec4 fix error codes and add more test coverage for message conditions (#17819) 2024-04-05 06:45:09 -07:00
Arvid Norberg 4b90197eae Rename softfork (#17799)
* remove disabled tests from CHIP-13

* rename the new soft-fotk to soft-fork 4. We've already had soft-fork 3, but it's activated and its logic has been removed
2024-03-29 08:41:36 -07:00
Arvid Norberg c67b8bbe5e message conditions (#17772)
* bump chia_rs to 0.6.1

* introduce soft-fork 3, to enable message conditions

* add wallet tests
2024-03-27 16:08:29 -07:00
Felix Brucker d09b61b72d Pass full version in Handshake (#15679)
* Pass full version in Handshake

* Move chia version conversion into crawler

* Rename to overloaded `chia_short_version` and always return str

* Ensure we extract major.minor.patch from invalid pep440 if available
2024-03-27 10:40:47 -07:00
Kyle Altendorf ed786e2f61 add foreign key delay (#17709)
* add foreign key delay

* handle non-`Row` foreign key error reports

* todos

* coverage

* rename to `foreign_key_enforcement_enabled=`
2024-03-27 09:14:57 -07:00
Earle Lowe 5dad9f2148 DL: stop using fee config setting and remove from initial config (#13374)
* DL: stop using fee config setting and remove from initial config

* Updates to set fee manually

* Set back explicit fee to original 0
2024-03-27 09:10:57 -07:00
Izumi Hoshino 2f3fce5c85 Added chia start daemon (#17704)
* Added `chia start daemon`

* Added a test case

* Fixed lint issues

* Reverted changes in `services_for_groups`

* Fixed coverage issue
2024-03-18 09:43:55 -07:00
Felix Brucker acaf7e0a3b Add use_delta_sync option (#17573)
* Add `use_delta_sync` option

* Use fixture for `use_delta_sync` bool param

* Add note in initial-config
2024-03-15 09:22:01 -07:00
Earle Lowe 48e4039e58 Update black to 24.1.1 and update source as needed (#17499)
* Update source to black 24 spec

* update black to 24.1.1

* update pylint to ignore multiple-statements

* update test file

* black updates

* format updates

* Update test_network_protocol_files.py

* Update test_network_protocol_files.py
2024-03-13 11:08:19 -07:00
Kyle Altendorf 57193aec94 watchdog==4.0.0 (#17666) 2024-03-07 12:31:14 -08:00
Kyle Altendorf 151d3555e0 use QueuedAsyncPool for DataLayer.periodically_manage_data() subscription handling (#17550)
* preliminary `AsyncPool`

* touchup

* use `AsyncPool` for `DataLayer.periodically_manage_data()` subscription handling

* fix

* tweak

* more

* test worker exception logging

* ignore

* add `QueuedAsyncPool`

* use `QueuedAsyncPool`

* fix

* cleanup

* tidy

* fixup

* fixup

(cherry picked from commit 484f34044d)

* Update data_layer.py

* fixup test coverage
2024-02-27 15:42:19 -08:00
Arvid Norberg 036313fc7e remove support for migrating peers from legacy file format (#17517) 2024-02-20 13:11:00 -08:00
Kyle Altendorf 1a71a77f62 remove config todo comment from a long time ago (#17566) 2024-02-16 10:17:00 -08:00
Arvid Norberg 362414c226 remove old unhashable special case in Streamable (#17561)
remove old unhashable special case in Streamable. This simplifies the streamable implementation
2024-02-15 09:40:30 -08:00
Amine Khaldi 0c5b4284bb Introduce satisfies_hint to check objects against type hints, use it in from_kwargs and fix all the incorrect and missing cases (#17375)
Introduce satisfies_hint to check objects against type hints, use it in from_kwargs and fix all the incorrect and missing cases.
2024-02-14 11:13:43 -08:00
Arvid Norberg c932324ec0 Bump chia rs 0.5.2 (#17505)
* bump chia_rs to 0.5.2

* specify the correct fixed-width integer types for rust bindings
2024-02-08 09:04:26 -08:00
Kyle Altendorf a64aafae6d add time out assert data collection and presentation (#16831)
* add tests.ether

* add new tests/ether.py

* go time out assert

* remove unused JunitPropertyName

* rename to `tests/process_junit.py`

* fixup

* hinting and pylint

* fixup

* after install

* handle skipped tests

* --only plot_sync/

* better relative paths

* better relative paths

* todos

* todos

* tidy

* back to full test run

* add markdown headings

* just make results an artifact

$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 6067k.

* also output the top 50 to the step summary

* Update process_junit.py

* Update process_junit.py
2024-02-06 11:19:02 -08:00
Amine Khaldi 1977c2d7c1 Augment conditions_dict_for_solution and conditions_for_solution to accept both types of programs (#17451)
Augment conditions_dict_for_solution and conditions_for_solution to accept both programs and serialized programs.

This allows us to use serialized programs without the need to convert them into programs.
2024-01-31 17:27:49 -08:00
Kyle Altendorf 2dd45157d3 ensure signal objects for signal handlers (#17123)
* ensure signal objects for signal handlers

* Update misc.py

* black
2024-01-31 13:37:10 -08:00
Kyle Altendorf 6fe2c9c58a use psutil.cpu_affinity() instead of os.cpu_count() (#17409)
* use `psutil.cpu_affinity()` instead of `os.cpu_count()`

* go simple for darwin

* assert, yay!
2024-01-31 09:28:37 -08:00
Arvid Norberg bdfffca5ab improve handling of UnfinishedBlocks (#17247)
* update full_node_store to support multiple UnfinishedBlocks with the same reward hash

* extend full node store to support recording outstanding requests for v2 unfinished blocks

* add test for full_node_store

* simplify creation of UnfinishedBlock in test_full_node.py

* extend UnfinishedBlock protocol to support distinguishing between unfinished blocks with the same partial hash but different foliage

* add test for NewUnfinishedBlock and NewUnfinishedBlock2

* when asking the full_node_store for an unfinished block, only by its partial hash; return the highest ranking (lowest foliage tx block hash)
2024-01-26 13:20:03 -08:00
Felix Brucker 82f3b06051 Add support for defining a list of full node peers to connect to (#17369) 2024-01-23 10:00:54 -08:00
Kyle Altendorf 78b7904fda switch transaction queue completion to a new ValuedEvent (#17305)
* switch transaction queue completion to a new `ValuedEvent`

* add tests
2024-01-16 09:22:42 -06:00
Arvid Norberg 51808b4ef7 Rust proof-of-space, reward chain and foliage types (#17218)
* use rust type for ProofOfSpace

* use rust types for Foliage

* use rust types for reward chain blocks
2024-01-10 15:42:31 -06:00
RigidityandKyle Altendorf 3e6e08732f Add a few missing type annotations (#17043)
* Add a few missing type annotations

* Update chia/util/struct_stream.py

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

* Update chia/util/keyring_wrapper.py

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

* add `ClassVar` import

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-01-08 08:36:13 -06:00
Arvid Norberg 92499b64a2 use rust types for VDFInfo, VDFProof and ClassgroupElement (#17102)
* use rust types for VDFInfo, VDFProof and ClassgroupElement. Since these types aren't dataclasses, the dataclass.replace() is changed to method replace()

* add test for recursive_replace()

* add comment in recursive_replace() hack
2024-01-04 10:54:21 -08:00
Arvid Norberg cc4e2d83a1 add feature to profile just the block validation (#17168)
add feature to profile just the block validation. This exposes what is actually going on while we validate blocks. Sometimes the block validation times are affected by other tasks that hog the CPU, blocking the main co-routine from being scheduled
2024-01-04 10:53:13 -08:00
Kyle Altendorf 512f7b9fc5 make sure keyring file gets closed (#17126)
* make sure keyring file gets closed

* Update file_keyring.py
2024-01-02 17:06:39 -08:00
Amine Khaldi 3a2be22c44 Merge commit 'a4cab829edd4f16dd89b29c7234ed39c23c5dcaa' into checkpoint/main_from_release_2.1.4_a4cab829edd4f16dd89b29c7234ed39c23c5dcaa 2023-12-22 23:29:59 +01:00
wjblanke a4cab829ed Performance tweaks (#17155)
* changed default peers from 80 to 40. switched auto db_sync default to NORMAL instead of FULL

* fixed default

* add defaults to config query
2023-12-22 16:28:31 -06:00
dependabot[bot]andKyle Altendorf 1e4bb69b9a build(deps): bump concurrent-log-handler from 0.9.24 to 0.9.25 (#17046)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-12-19 10:59:00 -06:00
Kyle Altendorf 5b210a4060 Merge commit 'a6730326e202c0bd6f0b013fdae357c628f28fde' into checkpoint/main_from_release_2.1.3_a6730326e202c0bd6f0b013fdae357c628f28fde 2023-12-18 17:49:10 -05:00
Kyle Altendorf a6730326e2 revert StructStream.__bytes__() to a working state instead of intentional failure (#17075) 2023-12-18 11:50:59 -06:00
Kyle Altendorf 22af705da6 tiny comment typo correction (#17057) 2023-12-15 09:59:53 -06:00
Arvid Norberg bd18018a00 adapt conditions_dict_for_solution() to how it's used (#17034) 2023-12-13 09:25:20 -06:00
Kyle Altendorf a58967badb drop int512.PACK (#17016) 2023-12-12 09:42:44 -06:00
Chris Marslender aa2fd02a37 Add tn11 to initial-config (#16935) 2023-11-28 21:21:10 -06:00
Kyle Altendorf 3caa0754cc add DBWrapper2.managed() (#16880) 2023-11-22 13:48:01 -06:00
Arvid NorbergandKyle Altendorf 30fb9f3d00 avoid redundant list->set and set->list conversions (#16855)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-22 09:02:33 -06:00
dependabot[bot]andKyle Altendorf d4234d804f build(deps): bump keyring from 23.13.1 to 24.3.0 (#16885)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-21 17:29:29 -06:00
dependabot[bot]andKyle Altendorf 305dfa74aa build(deps): bump aiohttp from 3.8.6 to 3.9.0 (#16884)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-21 17:19:15 -06:00
Arvid Norberg c0deb18405 remove special case logic for soft-fork 3 activation (#16819) 2023-11-21 17:06:17 -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
dependabot[bot]andKyle Altendorf e986d1e3ee build(deps-dev): bump mypy from 1.5.1 to 1.7.0 (#16788)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-14 12:20:56 -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 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
Don Kackman 975af7494b [ADDED] Allow the daemon to use TLS v1.2 via config flag (#16747) 2023-11-01 11:53:58 -05:00
Chris MarslenderandKyle Altendorf 53435588a0 Update to support looking up mnemonic by just the first 4 letters of each word (#16704)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-01 11:52:52 -05:00