Skip to content

starknet_api: include fee_proposal_fri in proposal commitment hash#13814

Closed
sirandreww-starkware wants to merge 1 commit into
04-30-apollo_storage_add_fee_proposal_fri_migrator_and_bump_blocks_version_to_6.1from
04-19-starknet_api_add_fee_proposal_to_block_hash_calculator
Closed

starknet_api: include fee_proposal_fri in proposal commitment hash#13814
sirandreww-starkware wants to merge 1 commit into
04-30-apollo_storage_add_fee_proposal_fri_migrator_and_bump_blocks_version_to_6.1from
04-19-starknet_api_add_fee_proposal_to_block_hash_calculator

Conversation

@sirandreww-starkware
Copy link
Copy Markdown
Contributor

No description provided.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

@sirandreww-starkware sirandreww-starkware changed the base branch from 04-19-apollo_storage_add_fee_proposal_to_storageblockheader to graphite-base/13814 April 19, 2026 17:43
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch from 6902537 to 6068d78 Compare April 19, 2026 17:43
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/13814 to 04-19-starknet_api_add_fee_proposal_to_partialblockhashcomponents April 19, 2026 17:43
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch from 6068d78 to b586ed3 Compare April 23, 2026 11:59
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch from 9d1ce55 to 4d045e8 Compare April 30, 2026 11:45
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/13814 to 04-30-starknet_transaction_prover_disable_tests_blocking_block_hash_change_at_the_request_of_avi_cohen April 30, 2026 11:45
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4d045e8. Configure here.

Comment thread crates/starknet_api/src/block_hash/block_hash_calculator_test.rs Outdated
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch from 4d045e8 to af6bb96 Compare April 30, 2026 12:25
@sirandreww-starkware sirandreww-starkware force-pushed the 04-30-starknet_transaction_prover_disable_tests_blocking_block_hash_change_at_the_request_of_avi_cohen branch 2 times, most recently from c4675e0 to 682867f Compare April 30, 2026 13:49
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch from af6bb96 to 1ac2d94 Compare April 30, 2026 13:49
@sirandreww-starkware sirandreww-starkware changed the base branch from 04-30-starknet_transaction_prover_disable_tests_blocking_block_hash_change_at_the_request_of_avi_cohen to graphite-base/13814 May 1, 2026 15:06
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch from 1ac2d94 to 932f11c Compare May 1, 2026 15:07
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/13814 to 04-30-apollo_storage_add_fee_proposal_fri_migrator_and_bump_blocks_version_to_6.1 May 1, 2026 15:07
@sirandreww-starkware sirandreww-starkware changed the title starknet_api: add fee_proposal_fri to block hash calculator starknet_api: include fee_proposal_fri in proposal commitment hash May 1, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch 2 times, most recently from 59d2ec9 to c649130 Compare May 1, 2026 15:59
@sirandreww-starkware sirandreww-starkware force-pushed the 04-30-apollo_storage_add_fee_proposal_fri_migrator_and_bump_blocks_version_to_6.1 branch from d961488 to 8eedc13 Compare May 1, 2026 15:59
@sirandreww-starkware sirandreww-starkware force-pushed the 04-30-apollo_storage_add_fee_proposal_fri_migrator_and_bump_blocks_version_to_6.1 branch from 8eedc13 to a5d10f1 Compare May 1, 2026 17:05
@sirandreww-starkware sirandreww-starkware force-pushed the 04-19-starknet_api_add_fee_proposal_to_block_hash_calculator branch from c649130 to 4eeb26d Compare May 1, 2026 17:05
Copy link
Copy Markdown
Contributor Author

@sirandreww-starkware sirandreww-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re: crates/starknet_api/src/block_hash/block_hash_calculator.rs line 291 (chain_if_fn for SNIP-35 fee_proposal in block hash):

Obsolete after F2F decision — fee_proposal_fri is no longer an input to the block hash. It now feeds only the proposal commitment hash (PartialBlockHash), via a separate HashChain step in PartialBlockHash::from_partial_block_hash_components after calculate_block_hash. BlockHashVersion::V0_14_3, STARKNET_BLOCK_HASH2, and the chain_if_fn block in calculate_block_hash were all removed. PR retitled accordingly: starknet_api: include fee_proposal_fri in proposal commitment hash. Added a unit test fee_proposal_fri_affects_partial_block_hash_but_not_block_hash to lock in the invariant. PTAL.

https://reviewable.io/reviews/starkware-libs/sequencer/13814#-OrEMx5P4-k9-bGZAH1C

@sirandreww-starkware
Copy link
Copy Markdown
Contributor Author

Per reviewer feedback, proposal-commitment-hash binding moved out of starknet_api into the orchestrator. starknet_api stays unchanged. The new orchestrator-side helper will land in a new PR above this one in the stack.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants