Commit Graph
5861 Commits
Author SHA1 Message Date
Matt Hauff ad3fb32d19 [CHIA-602] Add bech32m option for adding public keys (#18073)
* Add bech32m option for adding public keys

* Change bech32 prefix
2024-05-29 11:40:43 -05:00
Felix Brucker 9134f43bcb Add unfinished block to state change event (#17976) 2024-05-28 13:13:34 -05:00
Amine Khaldi f004adb352 Merge commit '9f207c2c2b0564e74ed0864e0d9bd3f9c3f91869' into checkpoint/main_from_release_2.3.1_9f207c2c2b0564e74ed0864e0d9bd3f9c3f91869 2024-05-24 19:16:08 +01:00
Arvid Norberg cc20b3a382 update chia_rs dependency to 0.9.0 (#18076) 2024-05-24 13:03:13 -05:00
Amine Khaldi 32fd48159f Do without more_itertools's partition in get_singleton_and_remaining_coins (#18030)
Do without more_itertools's partition in get_singleton_and_remaining_coins.
2024-05-23 11:51:56 -05:00
Earle Lowe 9f207c2c2b [CHIA-593] - Add bridge CATs to known CAT list (#18064)
* [CHIA-593] - Add bridge CATs to known CAT list

* Fix typo
2024-05-23 11:05:38 -05:00
a58cc334a4 clvm mypie (#16898)
* clvm mypie

* update exclusions

* wip

* some

* undo for now

* more

* more

* drop the program usage in datalayer tests

* ignore tree hash errors

* ignore enough in _sexp_replace...

* again

* almost

* Fix test_singleton.py

* dl fixup

* did fixup

* touchup

* nft fixup

* fixup tests

* Revert "fixup tests"

This reverts commit 5df1a705ec.

* or this i guess

* blah

* Fix get_owner_did

* tidy

* blah

* `.as_atom()`

* `.as_int()`

* Update chia/wallet/nft_wallet/nft_puzzles.py

* `rrrff`

* stop using `CastableType`

* undo stuff around using `CastableType`

* `announcement_assertions: List[Program]`

* Update chia/types/blockchain_format/program.py

* more

* clvm==0.9.10

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Matt <quexington@gmail.com>
2024-05-22 12:28:07 -05:00
Matt Hauff ba4b37712f Revert final_pubkey: G1Element from main (#18063)
Revert final_pubkey: G1Element from main
2024-05-22 12:27:45 -05:00
Arvid Norberg 71fe79d910 CHIA-595: update test fixture ConsensusMode to be ordered (#18061)
update test fixture ConsensusMode to be ordered, to support future soft-fork after the hard fork
2024-05-22 12:16:21 -05:00
Matt Hauff 91fc928bb4 [CHIA-589] Link trade cancellations with announcements (#18046)
* Link trade cancellations with announcements

* whoops bad cherry pick

* Add test
2024-05-22 10:48:15 -05:00
Amine Khaldi 65e5ad6b49 Leverage serialized program for nonce creation in VCWallet's revoke_vc (#18020)
Leverage serialized program for nonce creation in VCWallet's revoke_vc.
2024-05-22 10:48:07 -05:00
Kyle Altendorf b49eb0a892 Revert "CHIA-414 fixup datalayer benchmark" (#18054)
Revert "CHIA-414 fixup datalayer benchmark (#17786)"

This reverts commit 50a5091345.
2024-05-21 20:49:35 -05:00
Earle Lowe b76a4f4a0a [CHIA-365] Return exception and error from get_kv_diff when either of the hashes has no data (#18039)
* Return exception and error from get_kv_diff when either of the hashes has no data

* Fix up test to handle expected error for invalid hash
2024-05-21 20:10:56 -05:00
Arvid Norberg a4c11433f9 bump chia_rs to 0.8.0 and update G1Element handling (#18037)
* bump chia_rs to 0.8.0 and update G1Element handling

* use real keys and signatures in mempool tests
2024-05-21 13:42:21 -05:00
Kyle Altendorf 50a5091345 CHIA-414 fixup datalayer benchmark (#17786)
* noisy first adjustment

* more

* big-o

* just test_benchmark_batch_insert_speed

* blah

* constant

* constant or linear with small slope

* blah

* Update test_data_store.py

* update limits

* slight tidy

* all benchmarks again
2024-05-21 13:41:50 -05:00
Matt Hauff 1ae00f6644 [CHIA-508] Add tx_config and extra_conditions to DID creation endpoint (#18024)
* Add TXConfig and extra_conditions to DID creation endpoint

* Fix test

* fix test
2024-05-18 11:08:37 -05:00
Florin Chirica b7e8fe7d93 [CHIA-387] DL batch upsert optimization. (#17999)
* DL batch upsert optimization.

* Lint

* Lint

* Fix test.

* Convert delete/insert to upserts.

* Update data_store.py

* Improve coverage.

* Whitespace.

* Change test to use upsert too.

* Clarify test usage.
2024-05-16 09:25:43 -05:00
Matt Hauff d868d9c43f [CHIA-292] Modify VerifiedCredential.launch to handle multiple source coins (#17982)
Modify VerifiedCredential.launch to handle multiple source coins
2024-05-16 09:25:29 -05:00
Matt Hauff 44c6b44c46 [CHIA-302] Handle reorgs in data layer wallet (#17992)
* Handle reorgs in data layer wallet

* Update WalletNode.reset_sync_db

* Fix test

* Make new tables easily forwards compatible

* Use singleton_records table instead of launcher_confirmations

* Only select launcher_id
2024-05-15 09:52:34 -05:00
Kyle Altendorf 73a7cb4687 CHIA-420 remove ignore for pkg_resources deprecation warning (#17933)
* remove ignore for `pkg_resources` deprecation warning

* replace pkg_resources usages

* fixup

* fixup

* fixup

* a couple

* imports

* cleanup

* maybe
2024-05-15 09:52:22 -05:00
Earle Lowe 2cb3741c50 Adjust farmer service SSL tests for increased reliability (#17921)
* Trying some SSL hacks for tests

* Some tweaks

* more hacks

* more hacks

* Using caplog for SSL verification failed check

* linting fixes

* Some additional tweaks to get it working on all platforms

* Added comments

* Separate into 3 tests

* Ignore coverage for calling the old exception handler

* Adjustments from code review
2024-05-15 09:52:11 -05:00
Kyle Altendorf de2d8c0ac0 store the index on the raw node objects (great? or not...?) 2024-05-15 08:57:15 -04:00
Kyle Altendorf 4a9e876666 add MerkleBlob.get_lineage() 2024-05-14 21:24:35 -04:00
Kyle Altendorf 7e0c897555 comment 2024-05-14 21:16:47 -04:00
Kyle Altendorf c772ae66cd trivial tree deserialization 2024-05-14 21:12:13 -04:00
Kyle Altendorf 7079391a38 drop the root node type, internal or leaf might be the root 2024-05-14 21:04:55 -04:00
Kyle Altendorf a622b13cce just RawLeafMerkleNode.key_value 2024-05-14 20:34:04 -04:00
Kyle Altendorf b85c3fbdeb NewTypes and other 2024-05-14 20:27:54 -04:00
Kyle Altendorf 2468b519b7 raw node [de]serialization tests 2024-05-14 11:00:25 -04:00
Kyle Altendorf c7e697e857 add chia.data_layer.util.merkle_blob 2024-05-14 09:56:22 -04:00
Amine Khaldi 250a6ab31c Remove no longer needed isinstance assert in mint_from_did and mint_from_xch for mypy's sake (#17925)
Remove no longer needed isinstance assert in mint_from_did and mint_from_xch for mypy's sake.
2024-05-12 22:10:24 -05:00
Amine Khaldi b93faf0a61 Improve spend bundle checks in test_dao_proposal_partial_vote (#17912)
Improve spend bundle checks in test_dao_proposal_partial_vote.
2024-05-12 22:10:16 -05:00
Amine Khaldi db970950e6 Simplify gen_and_send_sb and make it type safe (#17911)
Simplify gen_and_send_sb and make it type safe.
2024-05-12 22:10:07 -05:00
Amine Khaldi c513b1b43c Remove leftover BlockRecord print in test_assert_height_pending (#17837)
Remove leftover BlockRecord print in test_assert_height_pending.
2024-05-12 22:09:31 -05:00
Arvid Norberg 41306ad436 optimize key derivation in the wallet (#17991)
optimize key derivation in the wallet. instead of deriving the same keys for every wallet, derive the keys once and re-use them for the derived puzzle hashes per wallet
2024-05-12 22:09:01 -05:00
Kyle Altendorf 98df4ce222 change datalayer python and logging from tree id to store id (#17864)
* change python and logging from tree id to store id

* always more

* oops

* again

* and...

* comment

* more
2024-05-10 13:45:45 -07:00
Arvid Norberg aa576768d6 Puzzle hash optimizations (#17995)
* use the NULL_HASHTREE constant instead of re-computing the hash on the fly

* optimize puzzle hash computations by using shatree_atom() and shatree_pair() directly, rather than constructing a Program to call get_tree_hash() on.

* cache synthetic public keys and private keys

* rename NULL_TREEHASH -> NIL_TREEHASH
2024-05-10 13:45:27 -07:00
Chris Marslender e88d2e4b41 Add genesis challenge to get_network_info rpcs (#18000) 2024-05-09 17:07:17 -07:00
dependabot[bot]andKyle Altendorf 480bba57ba build(deps-dev): bump mypy from 1.8.0 to 1.10.0 (#17984)
* build(deps-dev): bump mypy from 1.8.0 to 1.10.0

Bumps [mypy](https://github.com/python/mypy) from 1.8.0 to 1.10.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* adjust

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-05-09 08:56:50 -05:00
Florin ChiricaandKyle Altendorf 6c25d3a184 Optimize DL autoinserts. (#17883)
* Optimize DL autoinserts.

* Lint.

* Improve tests.

* update root history references

* Stress test benchmarks.

* Try with low limit first.

* Try without -k

* Gather more data.

* Run only benchmark.

* Remove exception.

* Increase limit

* Increase limit.

* Increase timeout

* Add new benchmark.

* Increase timeout.

* Timeouts.

* Increase timeout

* Revert stress test.

* Use the correct limit

* Update test.

* Add option to disable the optimization.

* Revert optimisation in offers.

* Test all cases properly.

* Apply suggestions from code review

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

* Improve case handling.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-05-09 08:55:51 -05:00
Amine Khaldi 8117f5d480 Remove no longer needed softfork_fixture (#17975)
Remove no longer needed softfork_fixture.
2024-05-07 23:02:51 -05:00
Amine Khaldi ad6e3be715 Update coins_to_offer values type in _create_offer_for_ids to avoid needlessly converting selected_coins to a set (#17973)
Update coins_to_offer values type in _create_offer_for_ids to avoid needlessly converting selected_coins to a set.
2024-05-07 23:02:42 -05:00
Earle Lowe 61e22fea87 Make sure to use no more than 61 cpus on windows (#17958)
* Make sure to use no more than 61 cpus on windows

* Type fix
2024-05-07 23:02:30 -05:00
wersfeds 6b678168bf chore: fix two typos (#17860)
* chore: fix typo

* chore: fix typo
2024-05-07 23:01:33 -05:00
Matt Hauff aefe7fdf28 Observer Mode (#17792)
* Observer Mode

* Address comments by @altendky

* Change RPC default and fix test coverage

* Add test coverage for rpc marshaller

* Fix @marshal util to return proper transactions
2024-05-07 13:39:25 -07:00
Arvid NorbergandAmine Khaldi 1dc157e934 bump farmer fill rate to 70% (#17954)
* bump farmer fill rate to 70%

* Adapt test_create_bundle_from_mempool_on_max_cost (#17962)

Adapt test_create_bundle_from_mempool_on_max_cost.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-05-07 13:38:58 -07:00
Arvid Norberg 35851e5122 optimize launcher_id_to_p2_puzzle_hash() (#17961) 2024-05-07 13:38:47 -07:00
Arvid Norberg fdb87e656c drop deprecated authentication_public_key from pool config (#17959)
* introduce early exit to dedent for-loop

* remove deprecated authentication_public_key from pool-config
2024-05-04 08:22:24 -07:00
Arvid Norberg 1661ce2e8a fix confusion between prompt and don't prompt in the plotnft CLI (#17951)
* fix confusion between prompt and don't prompt in the plotnft CLI

* use cli_confirm in plotnft CLI
2024-05-04 08:21:05 -07:00
Arvid Norberg cb57cc848a remove unused current_inner from PoolState (#17965)
remove unused current_inner from PoolState. We generate this puzzle regularly, it's expensive, and we don't use it
2024-05-04 07:45:13 -07:00