Jack Nelson
a447734728
Refactor CLI by adding add new click types for fees, amounts, addresses and bytes32 ( #15718 )
2024-06-24 16:52:40 -07:00
Matt Hauff
a83f59bf2b
Fix backwards compatibility for add_private_key ( #18237 )
...
* Fix backwards compatibility for `add_private_key`
* Another backwards compatibility fix
2024-06-24 15:26:46 -07:00
Matt Hauff
058b80775a
[CHIA-711] Add WalletActionScope ( #18125 )
...
* Add the concept of 'action scopes'
* Add `WalletActionScope`
* Add the concept of 'action scopes'
* pylint and test coverage
* add try/finally
* add try/except
* Undo giving a variable a name
* Test coverage
* Ban partial sigining in another scenario
* Make WalletActionScope an alias instead
* Add extra_spends to the action scope flow
* Add test for .add_pending_transactions
2024-06-24 14:34:02 -07:00
Amine Khaldi
bce4b4a494
CHIA-766 Deduplicate sb mempool asserts ( #18175 )
...
Deduplicate sb mempool asserts.
2024-06-24 14:12:20 -07:00
wjblanke
7a8489ecc9
Fix for freebsd suggested by user alghmma ( #17994 )
...
* fix for freebsd suggested by user alghmma
* fix copy paste
2024-06-24 13:56:04 -07:00
Amine Khaldi
9abedb578b
CHIA-765 Add the ability to set a fee in make_item ( #18174 )
...
Add the ability to set a fee in make_item.
2024-06-24 13:54:42 -07:00
Florin Chirica
20fb8b223f
DL query multiple ancestors in upsert. ( #18146 )
2024-06-24 13:54:13 -07:00
Matt Hauff
6ed262e3fb
[CHIA-690] Add offer expiration to CLI ( #18193 )
...
* Add offer expiration to CLI
* Add timezone information
2024-06-24 13:53:59 -07:00
Earle Lowe
4b2f9f0c7e
Revert "use rust types for RecentChainData, ProofBlockHeader and WeightProof" #17738 ( #18231 )
...
Revert "use rust types for RecentChainData, ProofBlockHeader and WeightProof …"
This reverts commit 3f0d5c070b .
2024-06-21 18:02:55 -05:00
Kyle Altendorf
eefca33875
Revert "Revert "Revert "CHIA-414 fixup datalayer benchmark""" ( #18223 )
...
Revert "Revert "Revert "CHIA-414 fixup datalayer benchmark"" (#18107 )"
This reverts commit e87d51a993 .
2024-06-21 15:32:39 -05:00
Amine Khaldi
1d20bf336b
CHIA-764 Make mk_item aware of bundle_coin_spends ( #18173 )
...
Make mk_item aware of bundle_coin_spends.
2024-06-21 09:04:46 -05:00
Amine Khaldi
c5e7a02116
CHIA-763 Inline additions_for_npc into MempoolItem's additions ( #18172 )
...
Inline additions_for_npc into MempoolItem's additions.
2024-06-21 09:04:36 -05:00
Amine Khaldi
495d401cf1
CHIA-736 Annotate trade_manager.py ( #18138 )
...
Annotate trade_manager.py.
2024-06-21 08:59:52 -05:00
Matt Hauff
6ed1fb02bd
[CHIA-754] Use tx_config in cancel_pending_trades ( #18169 )
...
Use tx_config in cancel_pending_trades
2024-06-21 08:59:11 -05:00
Matt Hauff
ff3067815b
(pylint) == -> is ( #18207 )
...
`==` -> `is`
2024-06-20 09:58:03 -05:00
Amine Khaldi
e0c36e8afd
CHIA-767 Simplify invariant_check_mempool ( #18176 )
...
Simplify invariant_check_mempool
2024-06-20 08:10:14 -05:00
Amine Khaldi
750b6ded1a
CHIA-617 Annotate test_mempool.py ( #18136 )
...
Annotate test_mempool.py.
2024-06-20 08:09:47 -05:00
Kyle Altendorf
e87d51a993
Revert "Revert "CHIA-414 fixup datalayer benchmark"" ( #18107 )
...
* Revert "Revert "CHIA-414 fixup datalayer benchmark" (#18054 )"
This reverts commit b49eb0a892 .
* repeats
* report coefficients
* hardcode timeout
* 5
* no benchmarks
* 0.6
* repeat name
* format_number()
* higher limits
* 10x
* tidy
2024-06-18 14:25:34 -05:00
Kyle Altendorf
74b86c0001
remove unused tree_id parameter from DataStore.batch_upsert() ( #18137 )
2024-06-18 14:24:42 -05:00
Kyle Altendorf
3061cd83d7
remove some pylint ignores ( #18140 )
2024-06-18 14:24:30 -05:00
Kyle Altendorf
a9dfc7589f
avoid interpolating values into sql queries ( #18181 )
...
* avoid interpolating values into sql queries
* Update data_store.py
2024-06-18 14:23:18 -05:00
Matt Hauff
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
Matt Hauff
a36c0b822e
[CHIA-710] Add the concept of 'action scopes' ( #18124 )
...
* Add the concept of 'action scopes'
* pylint and test coverage
* add try/finally
* Address comments by @altendky
* Address comments by @altendky
* 86 memos
* Only one callback
* pylint
* Address more comments by @altendky
* remove unused variable
* add comment
2024-06-17 18:00:59 -05:00
Matt Hauff
a6fca99e6f
Remove chia.clvm.singleton ( #18163 )
...
Remove chia.clvm.singleton
2024-06-17 11:58:20 -05:00
Amine Khaldi
e12f1e5041
Merge commit '2fe28180762ac7f3cb49d54d6b40e3245862b4e1' into checkpoint/main_from_release_2.4.0_2fe28180762ac7f3cb49d54d6b40e3245862b4e1
2024-06-14 18:12:53 +01:00
Sebastjan Trepca
a5be6ebd52
minor fix for make_spend function ( #18131 )
2024-06-12 12:16:59 -05:00
Earle Lowe
2fe2818076
Use TYPE_CHECKING to work around python 3.8 limitations with generics ( #18152 )
...
* Use TYPE_CHECKING to work around python 3.8 limitations with generics
* Add comment about 3.8 specific workaround
2024-06-12 09:46:35 -05:00
Arvid Norberg and Amine Khaldi
66a8554211
Bump chia rs 0.10.0 ( #18135 )
...
* extend test_full_node
* bump chia_rs dependency to 0.10.0
* initialize new AGG_SIG_*_ADDITIONAL_DATA fields in ConsensusConstants. Increase end-to-end test coverage of validating message suffixes as it's moving to condition parsing
* remove validaton from pkm_pairs
* NO_RELATIVE_CONDITIONS_ON_EPHEMERAL is always enabled in chia_rs 0.10.0
* Update chia/_tests/core/full_node/test_conditions.py
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org >
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org >
2024-06-11 20:17:49 -05:00
Amine Khaldi
7b08caaa69
[CHIA-740] Annotate chia_and_cat_for_something ( #18145 )
...
Annotate chia_and_cat_for_something.
2024-06-11 13:05:14 -05:00
Amine Khaldi
387619b1f5
CHIA-619 Annotate test_trades.py ( #17447 )
...
Annotate test_trades.py.
2024-06-11 09:08:31 -05:00
Amine Khaldi
9ea4609618
CHIA-684 Simplify and speedup test_double_spend_with_higher_fee ( #18120 )
...
Simplify and speedup test_double_spend_with_higher_fee.
2024-06-09 00:27:11 +01:00
Kyle Altendorf
c78d974825
tidy data store ( #18111 )
...
* tidy data store
* more
2024-06-09 00:27:00 +01:00
Florin Chirica
9b7bb246cb
CHIA-645 Optimize build ancestors table. ( #18100 )
...
* Optimize build ancestors table.
* Update data_store.py
* Add test
* Lint
* Lint
* Lint
* Simplify query
* Add test for sparse ancestor table.
* Lint.
* Lint.
* Lint.
* Update test_data_store.py
* Fix test.
2024-06-09 00:26:48 +01:00
Arvid Norberg
f9375a68fa
[CHIA-615] Rust BLS cache ( #18085 )
...
use the rust port of the BLS cache
2024-06-09 00:26:27 +01:00
Arvid Norberg
a745cb0344
CHIA-603: drop support for testnet10 ( #18075 )
...
* clean up some code kept around just to support testnet10
* remove configs and overrides for unsupported testnets
2024-06-09 00:25:09 +01:00
Rigidity
de75f058dd
CHIA-194: CHIP-0026 Mempool Updates ( #17980 )
...
* Initial draft of mempool updates [skip ci]
* More implementation work, but capability issue [skip ci]
* Temp (will probably revert)
* Get first test passing
* Setup spent coin tests
* Add unrelated test data to make tests better
* Refactor test
* Finish testing
* Update tests
* Include removal reason and block inclusion tests
* Remove unnecessary dict
* Add missing message to test
* Fix after rebase
* Broadcast support from node for mempool updates
* Remove redundant code
* Use new_block
* Filter and early return suggestions
* Reword comments on PeakPostProcessingResult
* Improve mempool fn name and doc comment
* Bump wallet protocol version
* Add ratelimits
* Add tests for querying mempool items
* Asserts and more tests
* Add peers for spend bundle tests
2024-06-06 10:59:44 +01:00
Rigidity
ee024b8736
CHIA-437: Add coin id index to coin state batching ( #18052 )
...
Add coin id index to coin state batching
2024-06-05 12:32:47 +01:00
Kyle Altendorf
a37ad22e11
introduce ComparableEnum for tests ( #18108 )
2024-06-05 11:02:19 +01:00
Kyle Altendorf
b69d91d439
Merge branch 'main' into merkle_blob
2024-06-04 14:39:40 -04:00
Almog De Paz
6354ea3ae7
CHIA-211 better return paths, more logs ( #17974 )
...
* better return paths, more logs
* remove fstrings
* fix condition
* betetr condition
2024-06-04 17:37:33 +01:00
Amine Khaldi
5f2b1c20dd
CHIA-620 Construct the solution as a serialized program in spend_bundle_from_conditions ( #18088 )
...
Construct the solution as a serialized program in spend_bundle_from_conditions.
2024-06-04 17:35:50 +01:00
Florin Chirica
81838c1892
CHIA-582 Use kv compressed in DL batch update ( #18032 )
...
* Use kv compressed in DL batch update
* Mypy.
* Lint.
* Lint
* Lint.
* Retrieve only keys.
* Lint.
* Address review comments.
* Lint.
* Increase timeout
* Revert
2024-06-04 17:02:44 +01:00
Rigidity
a9e8e4b91a
CHIA-623: Split capabilities for each service ( #18096 )
...
* Move capabilities underneath Capability
* Split default capabilities for each service
* Make get_capabilities take in node_type
* Remove optionality
* Refactor get_capability_overrides
2024-06-04 17:01:59 +01:00
Kyle Altendorf
e8d2710c40
add installed test for chia init and fix importlib_resources uses ( #18102 )
...
* add installed test for `chia init`
* `.rpartition(".")[0]`
2024-06-03 12:21:26 -05:00
dependabot[bot] and Kyle Altendorf
b31806bca1
build(deps-dev): bump pylint from 3.1.0 to 3.2.2 ( #18019 )
...
* build(deps-dev): bump pylint from 3.1.0 to 3.2.0
Bumps [pylint](https://github.com/pylint-dev/pylint ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/pylint-dev/pylint/releases )
- [Commits](https://github.com/pylint-dev/pylint/compare/v3.1.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* clean up some
* more
* pylint==3.2.2
* a few left
* ignore a few
---------
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-06-03 12:21:09 -05:00
Arvid Norberg
605e3b8982
[CHIA-615] make BLSCache a proper class ( #18053 )
...
* make BlsCache a proper class, rather than a global dict with helper functions
* make the BLS cache a member of the FullNode, rather than a global variable
* add test for BAD_AGGREGATE_SIGNATURE when using the BLS cache
2024-05-31 13:57:20 -05:00
Arvid Norberg
a83b240197
CHIA-595: Soft fork 5 ( #18072 )
...
* introduce soft-fork-5
* unit test for infinity G1 points
2024-05-30 14:39:31 -05:00
Amine Khaldi
a473d502b9
CHIA-616 Annotate test_blockchain.py ( #18021 )
...
Annotate test_blockchain.py.
2024-05-30 09:29:55 -05:00
Chris Marslender
dafd8b41d9
Add optional trusted CIDR list ( #18094 )
...
* trusted_cidr list
* Tests for trusted cidrs
* only check IPs
* Fixing lint
2024-05-29 13:45:59 -05:00
Arvid Norberg
b241d2659a
simplify mempool coin spends ( #18095 )
2024-05-29 11:40:53 -05:00