Commit Graph
1095 Commits
Author SHA1 Message Date
Florin Chirica c77fa7b3a4 Fix test. 2024-10-30 02:44:36 +02:00
Florin Chirica 11e1c623bb Lint. 2024-10-30 02:28:44 +02:00
Florin Chirica 7765bbd504 Lint. 2024-10-29 06:01:22 +02:00
Florin Chirica 81083b2176 Merge branch 'long_lived/datalayer_merkle_blob' into fc.dl_integration 2024-10-29 05:20:52 +02:00
Matt Hauff 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
Florin Chirica de52d3899e Migrate old DB. 2024-10-25 17:57:41 +03:00
Kyle Altendorf 2588600d1c more lowercase types such as in comments (#18737) 2024-10-24 11:52:10 -07:00
Kyle Altendorf 9eefca78fa catchup: into long_lived/datalayer_merkle_blob from main @ 8c72d22edf (#18756)
Source hash: 8c72d22edf
Remaining commits: 0
2024-10-23 13:53:03 -04:00
Kyle Altendorf c23b284126 use signed integers for keys and values (#18753) 2024-10-23 13:13:13 -04:00
Kyle Altendorf 5bba8852b8 pyupgrade 2024-10-23 10:17:55 -04:00
Kyle Altendorf bd69aace4f Merge commit '8c72d22edf0257e53ece9af54801ccc348472933' into catchup/long_lived_datalayer_merkle_blob_from_main_8c72d22edf0257e53ece9af54801ccc348472933 2024-10-23 10:14:34 -04:00
Kyle Altendorf 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
Florin Chirica 27b36c9a4c Fix more tests. 2024-10-22 04:41:32 +03:00
Florin Chirica de6d13159e Lint. 2024-10-21 19:25:10 +03:00
Florin Chirica 3220d62ede Lint. 2024-10-21 19:20:46 +03:00
Florin Chirica e3b93d9ae8 Fix code after merge conflict. 2024-10-21 19:16:40 +03:00
Florin Chirica bc048007ca Fix test. 2024-10-21 19:04:21 +03:00
Florin Chirica 63a58da829 Merge branch 'long_lived/datalayer_merkle_blob' into fc.dl_integration 2024-10-21 18:57:19 +03:00
Kyle Altendorf 8f28d409d9 remove node .index attributes (#18733)
* quick removal of node `.index` attributes

* dedupe

* fixup
2024-10-21 11:55:25 -04:00
Florin Chirica c7e18033ec Lint. 2024-10-18 06:04:30 +03:00
Florin Chirica 9676318cf5 Lint. 2024-10-18 06:01:52 +03:00
Florin Chirica f6207f83f5 Lint. 2024-10-18 05:55:48 +03:00
Florin Chirica bdb002eff0 Lint. 2024-10-18 05:43:10 +03:00
Florin Chirica fbf18145f7 Lint. 2024-10-18 05:28:28 +03:00
Florin Chirica d108e3edc7 Lint 2024-10-18 05:14:34 +03:00
Florin Chirica 557068c704 Merge branch 'long_lived/datalayer_merkle_blob' into fc.dl_integration 2024-10-18 05:07:19 +03:00
Florin Chirica df75337b50 Delete data on unsubscribe. 2024-10-18 04:59:05 +03:00
Kyle Altendorf 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
Florin ChiricaandKyle Altendorf 5cd6bcd8a3 standalone merkle blob for datalayer (#18403)
* add `chia.data_layer.util.merkle_blob`

* raw node [de]serialization tests

* `NewType`s and other

* just `RawLeafMerkleNode.key_value`

* drop the root node type, internal or leaf might be the root

* trivial tree deserialization

* comment

* add `MerkleBlob.get_lineage()`

* store the index on the raw node objects (great?  or not...?)

* Checkpoint.

* Some linting.

* Some type checking.

* Lint.

* Add proof of inclusion code.

* Fix test.

* Lint.

* Add free positions.

* Lint.

* Improve test.

* Lint.:

* Lint.

* Add upsert.

* Go with lower limits.

* Apply Kyle's change.

* Lint.

* ignore astuple mypy complaint

* add `c_profile` fixture

* Add cache.

* Lint.

* Lint.

* Add batch autoinsert.

* Lint.

* Checkpoint split keys and values ids.

* Lint.

* Lint.

* Lint.

* Lint.

* Fix tests.

* Lint.

* Add reference and side.

* Update merkle_blob.py

* Lint.

* Lint.

* Lint.

* Lint.

* Lint

* Improve coverage.

* Lint.

* Improve coverage.

* Lint.

* Improve test.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-10-15 22:13:57 -04:00
Florin Chirica 1a6153fd8b Some linting. 2024-10-16 04:41:22 +03:00
Florin Chirica 1bbbcf8cd3 Lint. 2024-10-16 04:29:56 +03:00
Florin Chirica 24495ab5ba Cherry pick CHIA-1427. 2024-10-16 04:22:45 +03:00
Florin Chirica 743c455ed2 Merge branch 'long_lived/datalayer_merkle_blob' into fc.dl_integration 2024-10-16 03:56:51 +03:00
Florin Chirica 4f4c18591a Download working. 2024-10-16 03:42:29 +03:00
Florin Chirica 870df12d61 Fix more tests. 2024-10-08 04:39:42 +03:00
Amine Khaldi 40e0df2c25 CHIA-1472 Augment get_mirror_info to accept both types of programs (#18637)
Augment get_mirror_info to accept both types of programs.

This allows us to use serialized programs without the need to convert them into programs.
2024-10-03 08:28:07 -07:00
Florin Chirica 89721b68b3 Checkpoint fix tests. 2024-10-02 04:29:37 +03:00
Earle Lowe 7759619b58 [CHIA-1427]: Limit full file creation when processing subscription generations (#18612)
* Some logging and some code to limit full file generation based on the max number of full files allowed

* Don't write out full files that aren't needed

* Black fixes

* Adjust the full file during error conditions

* No need for try
2024-09-30 09:33:08 -07:00
Florin Chirica 8aed02ffb0 Checkpoint integration. 2024-09-30 19:07:34 +03:00
Earle Lowe c0c12b90c6 [CHIA-1437]: Reduce level log spam when downloading DAT files (#18610)
* Reduce level log spam when downloading files

* black fix

* Just change info->debug
2024-09-27 10:02:29 -07:00
Kyle Altendorf e3aac5ba3e Revert "CHIA-645 Optimize build ancestors table. (#18100)" (#18609)
* Revert "CHIA-645 Optimize build ancestors table. (#18100)"

This reverts commit 9b7bb246cb.

* restore tests
2024-09-25 11:56:54 -07:00
Matt Hauff bffb7b11c3 [CHIA-1307] Port key management RPCs to @marshal decorator (#18593)
* Port `log_in` to decorator

* Port `get_logged_in_fingerprint` to decorator

* Port `get_public_keys` to decorator

* Port `get_private_key` to decorator

* Port `get_mnemonic` to decorator

* Port `add_key` to decorator

* Port `delete_key` to decorator

* Port `check_delete_key` to decorator

* Port `delete_all_keys` to decorator

* Bad copypasta
2024-09-24 15:08:09 -07:00
Florin Chirica 6237de69fe Lint. 2024-09-20 03:16:51 +03:00
Florin Chirica 3d4158d92b Fix tests. 2024-09-20 03:14:21 +03:00
Florin Chirica e073155e06 Checkpoint split keys and values ids. 2024-09-16 20:18:13 +03:00
Kyle Altendorf a6a27bfe8e optimize datalayer hashing (#18510) 2024-09-11 09:41:54 -07:00
Florin Chirica 0804b67d78 Lint. 2024-09-05 18:49:22 +03:00
Florin Chirica 77b0965d90 Add batch autoinsert. 2024-09-05 18:20:50 +03:00
Amine Khaldi 8129b41473 CHIA-210 Introduce WalletSpendBundle and use it across code related to wallets (#18264)
Introduce WalletSpendBundle and use it across code related to wallets.
2024-08-30 21:36:26 +08:00
Florin Chirica 480725e560 Lint. 2024-08-28 04:20:31 +03:00