Arvid Norberg
27bfa7e2a3
reject transactions from the mempool, that take too long to validate ( #19611 )
2025-05-15 16:08:04 -07:00
Arvid Norberg
3901126c3d
amendment to Dedup patch #19565 ( #19569 )
2025-05-05 14:05:55 -05:00
Arvid Norberg
78ccd69885
use monotonic clock when timing functions in harvester ( #19567 )
2025-05-05 08:44:44 -05:00
Arvid Norberg
baceeb8417
improve logging and timing around block validation ( #19566 )
2025-05-02 09:59:37 -07:00
Earle Lowe
0fb511b2f6
Enable Keccak for 2.5.4 ( #19563 )
...
* Backport enabling Keccak by default for wallet
* Keep ENABLE_KECCAK when not using mempool_mode
2025-05-02 09:59:23 -07:00
Arvid Norberg
5e0a0df94a
Improve dedup ( #19565 )
...
* improve dedup
* address review comments
2025-05-02 09:58:46 -07:00
Amine Khaldi
8ec82c578e
Optimize mempool's removals checking ( #19560 )
...
Optimize mempool's removals checking.
2025-05-01 12:15:15 -07:00
Arvid Norberg
b4ad4cf8d6
back-port improved logging of timing in block validation ( #19546 )
2025-05-01 10:05:55 -07:00
Arvid Norberg and Almog De Paz
6ab2a4b7c5
fix tl node peak sync ( #19389 ) ( #19445 )
...
* fix tl node peak sync
* revert pytest change
* add weight check, rearrange cases
* comments, logs
* logs
* fix condition
Co-authored-by: Almog De Paz <almogdepaz@gmail.com >
2025-05-01 10:05:26 -07:00
Arvid Norberg
2dedd07056
log if computing cost fails during block creation ( #19523 )
2025-05-01 10:05:07 -07:00
Rigidity
4ae44855b1
Include removals in declare_proof_of_space ( #19364 )
2025-03-11 10:10:20 -07:00
Arvid Norberg
6358bab4c3
[CHIA-2383] improve FF mempool eviction ( #19355 )
...
* evict FF spends from the mempool if they become invalid with a new peak
* optimize fast-forward rebase in mempool new_peak()
* clean up tests, also test reversing spent coins in new_peak()
* extend mempool invariant check in tests
* fix typo in comment
2025-03-07 17:44:40 -06:00
matt-o-how and Arvid Norberg
92cd6eeb70
Add increment to skipped_items if we hit an Exception in mempool ( #19286 )
...
* add skip to exception
* fix test as last coin gets skipped
* Add skip to exception update (#19339 )
* don't throw exception when skipping FF or Dedup coin in mempool
* skipping a dedup because of different solution is not an error
* correct logging and tests
* unit test skipping FF after 3 errors
---------
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
2025-03-07 17:44:30 -06:00
Florin Chirica
3a1f70a9b4
Add fallback for introducer. ( #19333 )
...
* Add fallback for introducer.
* Lint.
* Lint.
* Lint.
* Fix test.
* Add test.
* Lint.:
2025-03-07 08:10:27 -08:00
Arvid Norberg
6707961abe
[CHIA-2503] make the super set rule stricter ( #19352 )
...
* make the super set rule a stricter
* use BundleCoinSpend bools rather than the flags to determine whether a spend supports fast forward and dedup
2025-03-06 10:57:10 -08:00
Arvid Norberg
a7a81a567f
cache get_unspent_lineage_info() ( #19335 )
...
* no need to pass get_unspent_lineage_info_from_puzzle_hash function into create_bundle_from_mempool(), we already have it as a member now
* cache results from get_lineage_info_for_puzzle_hash()
2025-03-04 09:05:41 -08:00
Kyle Altendorf
c57dea6512
use chia_rs directly for reward chain block ( #19336 )
2025-03-04 09:04:38 -08:00
Arvid Norberg
4d244bb103
bump chia_rs to 0.21.0 ( #19337 )
...
* bump chia_rs to 0.21.0
* update mempool tests with the new, stricter, rules
2025-03-04 09:03:51 -08:00
Arvid Norberg
9ba6c0407b
address issue introduced in #19207 ( #19328 )
...
address issue introduced in #19207 where empty transaction blocks would not have None transactions_block_generator
2025-03-04 08:42:03 -06:00
Kyle Altendorf
dd01af2c2b
use chia_rs directly for pool target ( #19332 )
2025-03-03 09:34:02 -08:00
Kyle Altendorf
d50b6e0883
use chia_rs directly for sized bytes ( #19326 )
2025-02-28 09:35:25 -08:00
dependabot[bot] and Kyle Altendorf
bc99c7a283
build(deps): bump mypy from 1.14.1 to 1.15.0 ( #19319 )
...
* build(deps): bump mypy from 1.14.1 to 1.15.0
Bumps [mypy](https://github.com/python/mypy ) from 1.14.1 to 1.15.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.14.1...v1.15.0 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* adjust accordingly
* remove another
* and windows
---------
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 >
2025-02-28 09:32:34 -08:00
d7e2358a32
build(deps): bump ruff from 0.8.5 to 0.9.6 ( #19260 )
...
* build(deps): bump ruff from 0.8.5 to 0.9.6
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.8.5 to 0.9.6.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.8.5...0.9.6 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update source to ruff 0.9.6
* Apply suggestions from code review
Co-authored-by: Kyle Altendorf <sda@fstab.net >
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net >
Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com >
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2025-02-27 09:53:34 -08:00
Kyle Altendorf
9075a50aeb
use chia_rs directly for weight proof ( #19315 )
2025-02-26 09:27:27 -08:00
Kyle Altendorf
fb6b78ef07
use chia_rs directly for foliage ( #19308 )
2025-02-25 11:33:25 -08:00
Arvid Norberg
45bac2e62d
mypy annotation for test_dos.py ( #19036 )
...
* remove unused function, get_block_path()
* add type annotation to test_dos.py
2025-02-25 11:32:06 -08:00
Kyle Altendorf
e446d6b726
use chia_rs directly for sized ints ( #19303 )
...
* use chia_rs directly for sized ints
* Update data_layer_rpc_api.py
2025-02-24 14:33:09 -08:00
Kyle Altendorf
30c4ef2689
use chia_rs directly for consensus constants ( #19301 )
2025-02-21 10:03:17 -08:00
Patrick Maslana
90f39c44a0
checkpoint: into main from release/2.5.2 @ 683d0ac289 ( #19298 )
...
Source hash: 683d0ac289
Remaining commits: 3
2025-02-20 11:33:52 -07:00
Matt Hauff
ccfa35cab8
[CHIA-2369] Legacy-ify DAOs ( #19266 )
...
Legacy-ify DAOs
2025-02-20 11:05:30 -07:00
Amine Khaldi
b22c4c839d
CHIA-2320 Annotate test_full_node.py ( #19226 )
...
Annotate test_full_node.py.
2025-02-20 10:58:39 -07:00
Amine Khaldi
d1a9b7ff52
Merge commit '683d0ac2897412b0f971857d7571d70742c7799d' into checkpoint/main_from_release_2.5.2_683d0ac2897412b0f971857d7571d70742c7799d
2025-02-20 15:13:56 +01:00
Matt Hauff
caf1f09e69
[CHIA-1163] Port test_nft_offers.py to WalletTestFramework ( #19265 )
...
* Port `test_nft_offer_with_fee`
* Port `test_nft_offer_cancellations`
* Port `test_nft_offer_with_metadata_update`
* Port `test_nft_offer_nft_for_cat`
* Port `test_nft_offer_nft_for_nft`
* Port `test_nft_offer_nft0_and_xch_for_cat`
2025-02-20 06:13:26 -07:00
Amine Khaldi
5bfdb395e0
Merge commit 'de0b0d8c69247fe8c32fe95d541d2c163a7d37de' into checkpoint/main_from_release_2.5.2_de0b0d8c69247fe8c32fe95d541d2c163a7d37de
2025-02-19 19:55:50 +01:00
wjblanke
683d0ac289
Syncstorewjb ( #19284 )
...
* check hash
* ruff
* missed one
2025-02-18 10:47:05 -07:00
Amine Khaldi
508a2a8052
Merge commit 'ad755916ab664abb207421e042328ca1603658ab' into checkpoint/main_from_release_2.5.2_ad755916ab664abb207421e042328ca1603658ab
2025-02-18 17:06:52 +01:00
Amine Khaldi
80c718e37d
Merge commit '6e542f051ef6ad2aca5f16c76c5c0e97a6616e29' into checkpoint/main_from_release_2.5.2_6e542f051ef6ad2aca5f16c76c5c0e97a6616e29
2025-02-18 11:56:15 +01:00
Amine Khaldi
de0b0d8c69
CHIA-2381 Validate fast forward spends before adding their spend bundle to the mempool ( #19272 )
...
Validate fast forward spends before adding their spend bundle to the mempool.
Make sure that all fast forward spends of a spend bundle would still have unspent coins.
2025-02-17 13:26:53 -07:00
Amine Khaldi
ad755916ab
CHIA-2382 Create a mempool item out of a copy of the input one when processing fast forward spends ( #19273 )
...
Create a fast forward mempool item out of a copy of the input one.
2025-02-17 11:47:42 -07:00
Arvid Norberg
6e542f051e
[CHIA-2380] harden mempool fast-forward feature ( #19276 )
...
* harden mempool fast-forward feature
* simplify
* move test to avoid conflict
* address code review
2025-02-17 09:28:35 -07:00
Arvid Norberg
43e17c88c8
import ENABLE_KECCAK and ENABLE_KECCAK_OPS_OUTSIDE_GUARD from chia_rs ( #19268 )
2025-02-14 13:15:05 -07:00
Arvid Norberg
0f35f707bd
create_block_generator refactor (#19207 )
...
* make item_inclusion_filter optional and move it to the end with default None, to simplify calls
* move block generator creation into the Mempool class
* update benchmark
* add test
2025-02-13 19:20:45 -07:00
Patrick Maslana
9842b8cd11
Add generate_signed_transaction to WalletProtocol ( #19244 )
...
This PR adds the `generate_signed_transaction` method to the
`WalletProtocol`. This will help enforce that any new wallets or general
uses of wallets must follow the same API for the key transaction method.
2025-02-12 10:50:32 -07:00
Florin Chirica
59b263bf65
Deprecate n-weso. ( #19253 )
2025-02-11 11:08:59 -07:00
Matt
ebef33e89e
Merge remote-tracking branch 'origin/main' into quex.gst_to_wallet_protocol
2025-02-11 09:56:14 -08:00
Matt Hauff
33de50c0a1
Bring VCWallet.generate_signed_transaction into conformity ( #19234 )
...
* Standardize the `Wallet` API for `generate_signed_transaction`
* Some test fixes
* Fix `create_tandem_xch_tx`
* Fix the other `create_tandem_xch_tx`s
* More test fixes
* More test fixes
* Bad fix from last time
* Bring `VCWallet.generate_signed_transaction` into conformity with other wallets
* Bad default
2025-02-11 09:06:46 -07:00
Almog De Paz
59583e75ef
Assert height to hash in contains block ( #19136 )
...
* add assertions
* use_height_if_available
* use try_block_record
* fix recursion
* handle none
* remove assert
* remove assert
* use try in wallet blockchain
* fix height o and height to hash in augmented
* get_correct_block_for_fork
* remove debug code
* use try_block_record
* check main chain againt undelying blockchain
* pass augmented in tests
* lint
* revert changes to wallet blockchain
* remove redundant comment
* lint
* remove debug message
* revert bad merge
* make height mandatory
* make height mandatory
* use try_block_record
* fix unfinished test
* remove from hh, test contains block
* fix test
* fix mock and cache
2025-02-11 07:18:52 -07:00
peicuiping
c62d20009c
chore: fix 404 status URL ( #19096 )
...
Signed-off-by: peicuiping <ezc5@sina.cn >
2025-02-11 07:08:43 -07:00
lencap
743cfdfff0
chore: fix some typos ( #19190 )
...
Signed-off-by: lencap <techgeek@189.cn >
2025-02-11 06:36:00 -07:00
Arvid Norberg
95c82997a3
name threads in ThreadPoolExecutor ( #19250 )
2025-02-11 06:27:01 -07:00