Amine Khaldi
b175bdf4ee
Merge commit '8f8d27aca479cb1456899acf7a4127aa06d4763f' into checkpoint/main_from_release_2.6.0_8f8d27aca479cb1456899acf7a4127aa06d4763f
2026-02-09 11:50:50 +01:00
Arvid Norberg and GitHub
8f8d27aca4
push out testnet11 soft fork activation height by 8 days (40000 blocks) ( #20445 )
2026-01-28 09:52:56 -08:00
Amine Khaldi
301fa2c143
Merge commit '4e364606227ab2eead3d0fc7a0c8c8030715326c' into checkpoint/main_from_release_2.6.0_4e364606227ab2eead3d0fc7a0c8c8030715326c
2026-01-23 11:14:40 +01:00
Almog De Paz and GitHub
4e36460622
get_flags, fix pre_sp_tx_block, test CHIA-3861 ( #20400 )
...
* get_flags, fix pre_sp_tx_block, test
* genesis case for get_flags
* block height for flags below fork
2026-01-15 09:37:48 -08:00
Amine Khaldi
e6017089cd
Merge commit 'b7b3638fcc281a82296c1ae1df82e7765bd93384' into checkpoint/main_from_release_2.5.8_b7b3638fcc281a82296c1ae1df82e7765bd93384
2026-01-15 16:05:31 +01:00
Arvid Norberg and GitHub
b7b3638fcc
bump chia_rs to 0.35.1 ( #20393 )
2026-01-09 12:07:51 -08:00
Amine Khaldi and GitHub
428e26cf5b
Explore bringing back v2 plot pool keys support ( #20388 )
...
Explore bringing back v2 plot pool keys support.
2026-01-08 09:17:56 -08:00
Almog De Paz and GitHub
6b8202cd6a
Augmented usage fix ( #20361 )
...
* pass augmented into test_utils
* add invariant
* remove redundant check
* check prev is in underlying
* fix check for genesis
* use try_block_recoed
* tests
* use assertion error
2026-01-05 09:36:21 -08:00
Arvid Norberg and GitHub
64b2c8d034
update expected_plot_size() to match the latest proof of space format ( #20350 )
2025-12-15 09:45:49 -08:00
Arvid Norberg and GitHub
426590feaf
bump chia_rs and update uses of RewardChainBlock and SubEpochSummary ( #20304 )
2025-12-03 10:27:55 -08:00
Arvid Norberg and GitHub
dcd296975d
relax PoS validation in weight proofs ( #20298 )
...
* relax proof-of-space validation in weight proofs. make it height agnostic
* fix typo in block_tools logging. hoist calculations out of the block_tools PoS loop
* make the plot-filter schedule safe in proof-of-space validation as part of weight proofs
* review comments
2025-12-02 10:15:28 -08:00
8315f62ae6
Import check_time_locks() and CoinRecord ( #19848 )
...
* initial commit
* fix int to bool map
* another int bool map
* cast error to Err class
* cast to Err in a couple other places
* remaining couple
* ruff
* inline coinstore bool
* typing fixes
* import directly from rust and remove legacy file
* fix lingering ref to coinrecord
* another outdated import
* ruff
* typping fix
* minor simplifications
* Fix test
* fix import merge
* address comments
* undo coin_store change
---------
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
Co-authored-by: Matt <quexington@gmail.com >
2025-11-26 12:48:42 -08:00
Arvid Norberg and GitHub
b7723252df
v2 plots only support pool contract puzzle hash ( #20145 )
2025-11-21 09:45:56 -08:00
Arvid Norberg and GitHub
70b182e9c7
[CHIA-3805] reduce use of pool_reward_puzzle_hash feature of BlockTools ( #20277 )
...
* reduce use of pool_reward_puzzle_hash feature of BlockTools, since it's not supported by v2 plots
* the BlockTools feature to ask for a specific pool puzzle hash are not supported by v2 proofs. v2 plots only have pool contract puzzle hash
2025-11-21 09:44:53 -08:00
Matt Hauff and GitHub
40db4635a8
[LABS-245] Enable PEP604 Ruff rules ( #20269 )
...
* Enable PEP604 Ruff rules
* Fix harcoded signature in test
* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
Arvid Norberg and GitHub
38d2d9f2d0
make sure to pass in the correct previous transaction block height ( #20237 )
...
* make sure to pass in the correct previous transaction block height to get_flags_for_height_and_constants()
* review comments
2025-11-14 16:29:51 -06:00
Almog De Paz and GitHub
ab53414e2a
fix tx block refrences in blocktools ( #20239 )
...
* fix tx block refrences in blocktools
* fix patch in test
* use pre_sp_block_height fix load_block_list
* rename
* fix params
* remove redundant param
2025-11-12 11:45:44 -07:00
Arvid Norberg and GitHub
5664516dda
Bump chia rs 0.34.0 ( #20226 )
...
bump chia_rs to 0.34.0
2025-11-10 17:02:10 -07:00
Almog De Paz and GitHub
54e915b723
prev_tx_before_sp ( #20235 )
...
* prev_tx_before_sp
* update wp to avoid crash
* fix genesis test
* comment
* comments, var names
* check to throw correct error
2025-11-10 11:14:04 -07:00
Arvid Norberg and GitHub
43c3c63145
[CHIA-3793] after the hard fork, disallow block references ( #20218 )
...
* after the hard fork, disallow block references
* disable hard-fork 2 tests until we have a new test cache
* fix rate limits test
2025-11-06 09:36:44 -07:00
Arvid Norberg and GitHub
ece6de2af5
[CHIA-3795] change v1 plot phase-out ( #20216 )
...
* change v1 plot phase-out to not affect required iters, and to be quantized to epoch blocks
* disable hard-fork 2 tests until we have a new test cache
* fix rate limits test
* address review comments
2025-11-06 09:36:29 -07:00
Arvid Norberg and GitHub
794cce7826
PoS2-prover ( #20159 )
...
* bump chia_rs to 0.31.0
* integrate new pos2 API from chia_rs into V2Prover
* fixup test_harvester_api mocking of Prover
* review-comments: rename get_quality() to get_string() on Quality protocol
* reivew comments
* fixup bump chia_rs
* restore quality string to bytes32
2025-10-22 15:40:25 -07:00
Zachary Brown and GitHub
8c93148014
Add HARD_FORK_HEIGHT override for testneta in defaults ( #20169 )
2025-10-20 17:12:16 -05:00
Arvid Norberg and GitHub
f17dedd5be
bump chia_rs dependency ( #20023 )
2025-09-05 06:31:21 -07:00
Arvid Norberg and GitHub
e4961d9ddf
[CHIA-3654] [CHIA-3537] [CHIA-3673] stub chiapos2 API ( #19969 )
...
* stub chiapos2 API
* update block tools to support v2 plots when generating chains, as well as using the solve_proof() stub in the solver
* review comments
2025-09-03 09:24:44 -07:00
52cd1086a7
[CHIA-3593] New solver service ( #19938 )
...
* add solver service
* lint
* wire service evrywhear
* prover protocol and v2Prover
* format name
* format
* refactor filename
* tests/raise unimplemented
* add get_filename_str to mock
* rename methods
* rename
* refactor
* improve coverage
* test from bytes
* harvester and farmer v2 support
* solver service, api, rpc
* clenup, add config to tests
* pre-commit
* remove mocks from test
* aync solver, fixtures, tests
* naming
* remove redundant farmer message
* solver fixtures and tests
* change quality_string to quality_chain
* fix service tests, cleanup
* name change, fix comments
* lint
* rename to partial proof
* network protocol test, use ThreadPoolExecutor
* naming and types
* check filter for both plot versions
* update network protocol tests
* more pr comments addressed
* fix rename
* fix network formatting error
* change to Assertion errors
* add todo
* remove strength from SolverInfo
* more pr comments, fix test to catch assertion
* revert strength
* test and comments
* rename to partial proof
---------
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
2025-08-22 15:26:09 -07:00
Arvid Norberg and GitHub
bcdc0c6f8b
CHIA-3520 CHIA-3656 CHIA-3665 Calculate iterations v2 ( #19956 )
...
* add v2 support to calculate_iterations_quality() and update the corresponding test
* update _expected_plot_size() for v2 plots
* address review comments
2025-08-18 09:27:58 -07:00
Arvid Norberg and GitHub
18fd65d13b
pass along plot format version from ProverProtocol into ProofOfSpace ( #19930 )
...
pass along plot format version from ProverProtocol into ProofOfSpace objects
2025-08-14 12:31:07 -07:00
Matt Hauff and GitHub
a803dc0fa6
[CHIA-3633] August 2025 pass of Ruff linting rules ( #19929 )
...
* Enable Ruff `PLR1704` (`redefined-argument-from-local`)
* Enable Ruff `PLR5501` (`collapsible-else-if`)
* Enable Ruff `PLW2901` (`redefined-loop-name`)
* bad change
* Enable Ruff `RUF043` (`pytest-raises-ambiguous-pattern`)
* Enable Ruff `RUF046` (`unnecessary-cast-to-int`)
* Enable Ruff `RUF052` (`used-dummy-variable`)
* Remove unused ignore `UP006`
* One mis-signaled regex
* Comments by @altendky
* bad change, my bad
2025-08-11 14:39:12 -07:00
04eef678e9
Bump chia rs 0.28 ( #19891 )
...
* bump chia_rs to 0.29
* correct return value from get_spends_for_trusted_block()
* remove unnecessary casts
* adjust test for the new error messages in chia_rs
* Update chia/full_node/full_node_rpc_api.py
Co-authored-by: Kyle Altendorf <sda@fstab.net >
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2025-08-05 11:20:27 -07:00
cac84b5e05
Simplify BlockStore ( #19880 )
...
* Simplify `BlockStore`
* Update chia/full_node/block_store.py
Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com >
---------
Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com >
2025-07-31 20:35:54 -05:00
Kyle Altendorf and GitHub
7a26610e8f
less pre-inting for ints ( #19853 )
2025-07-23 13:18:04 -07:00
Arvid Norberg and GitHub
4576684c14
integrate PLOT_V1_PHASE_OUT constant ( #19820 )
...
* integrate PLOT_V1_PHASE_OUT constant
* current test chains won't work after the plot v1 phase-out
2025-07-21 08:59:16 -07:00
Richard Kiss and GitHub
d01758f9c8
BlockHeightMapProtocol (#19798 )
2025-07-11 19:38:14 -05:00
Arvid Norberg and GitHub
dac837e799
bump chia_rs ( #19802 )
2025-07-10 16:12:29 -05:00
Amine Khaldi and GitHub
c609d0bba1
CHIA-2900 Fast forward mempool optimization ( #19713 )
...
Fast forward mempool optimization.
2025-07-09 20:49:45 -05:00
Arvid Norberg and GitHub
3491f1aeae
Plot v2 quality string ( #19769 )
...
* add shortcuts for bytes32 and G1Element to test_proof_of_space.py to make it a bit easier to read
* introduce calculate_plot_difficulty(), for incrementing plot difficulty over time. Tweak the placeholder cut-over block heights to make it possible to test
* update verify_and_get_quality_string() to support more aspects of v2 plots. update the v2 proof verification stub to take plot difficulty. add plot filter test cases for v2 plots
* move some tests from weight-proof to proof-of-space
2025-07-03 09:21:07 -07:00
a125e7b690
Create CoinStoreProtocol to remove a dependencies on chia.full_node from chia.consensus ( #19741 )
...
* `CoinStoreProtocol`
* Remove `.get_all_coins`
* Apply suggestions from code review
Uses `...` instead of values.
Co-authored-by: Kyle Altendorf <sda@fstab.net >
* Add `.is_empty` to protocol
* Improve test fixture stuff
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2025-06-30 16:05:40 -07:00
Arvid Norberg and GitHub
9d8c170b1a
Fix plot size override ( #19771 )
...
* fix testnet11 plot size override as the constant has changed name
* correct overrides when starting the harvester as well
* update
2025-06-27 11:29:07 -07:00
Amine Khaldi and GitHub
777884f3b7
CHIA-3250 Unify fork peak and reward coins handling between ForkInfo's include_spends and include_block ( #19766 )
...
Unify fork peak and reward coins handling between ForkInfo's include_spends and include_block.
2025-06-26 23:33:05 -07:00
Amine Khaldi and GitHub
91e4c16d25
CHIA-3207 Pass coin IDs from Blockchain's _reconsider_peak to CoinStore's new_block to avoid recomputing them ( #19749 )
...
Pass coin IDs from Blockchain's _reconsider_peak to CoinStore's new_block to avoid recomputing them.
2025-06-26 16:29:25 -07:00
Arvid Norberg and GitHub
224fb82383
require block generators to use canonical CLVM serialization after 3.0-hard fork ( #19714 )
2025-06-26 10:18:37 -07:00
matt-o-how and GitHub
80d38200a3
Migrate away from clvm imports ( #19730 )
...
* migrate casts to wallet util
* reset mempool_check_conditions
* ruff to re-order imports
* reset full_node_rpc_api
* add tests for casts
* ruff and type
* move to util to avoid consensus depending on wallet
* ruff again
* add a deterministic seed for random
2025-06-26 10:18:04 -07:00
Arvid Norberg and GitHub
5d8b3c8ca7
bump chia_rs to 0.26.0 ( #19746 )
...
* bump chia_rs to 0.26.0
* review comments
* more review comments
* fix lockfile
2025-06-26 10:17:50 -07:00
Amine Khaldi and GitHub
6969867017
CHIA-3179 Optimize rolled back state construction in _reconsider_peak ( #19734 )
...
Optimize rolled back state construction in _reconsider_peak.
2025-06-23 09:10:42 -07:00
Arvid Norberg and GitHub
deb1d2e6cd
[CHIA-2859] add ConsensusMode in tests to cover the new hard fork ( #19716 )
...
* add ConsensusMode in tests to cover the new hard fork
* correctly compute the block cost when the new condition cost rules take effect
2025-06-20 08:50:19 -07:00
Richard Kiss and GitHub
3e30f67405
Refactor BlockHeightMap Creation to Decouple It from Blockchain ( #19711 )
...
Create `BlockHeightMap` outside of `Blockchain` so `chia.consensus`
doesn't have to depend on a specific storage mechanism.
2025-06-17 11:53:26 -07:00
Richard Kiss and GitHub
14db91db6d
Extract time lock validation and move to chia.consensus. ( #19707 )
...
Move `mempool_check_time_locks` to `chia.consensus` and rename to `check_time_locks`.
2025-06-16 14:33:26 -07:00
Richard Kiss and GitHub
4f03890871
chia/full_node/signage_point.py -> chia/consensus/signage_point.py (#19706 )
2025-06-12 11:14:27 -07:00
6050235bdb
[CHIA-3043] Add (hopefully) non-controversial ruff rules ( #19684 )
...
* Add (hopefully) non-controversial ruff rules
* mypy-exclusions.txt
* PIE
* Fix pre-commit?
* PYI
* RSE
* S + ignores
* Whitespace fix
* Re-add build-init-files.py
* Add comment about security ignores
* Update mypy-exclusions.txt
Co-authored-by: Kyle Altendorf <sda@fstab.net >
* Fix the executable status of build-init-files.py
* Set executable bit for tools/run_block.py and readd shebang
* Fix new errors
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2025-06-11 08:36:08 -07:00