Skip to content

Conversation

cjjdespres
Copy link
Member

The hard_fork_genesis_slot_delta option tracks the slot span between the slot_chain_end and the planned proof.fork.global_slot_since_genesis of an upcoming hard fork. In a future commit it will be incorporated into the hard fork account migration and the root ledger sync mechanism.

It can't quite be used in the ledger sync code yet (for the vesting parameter adjustment) because the structure of the ledger root code assumes that the conversion function can be determined at compile time. I'll change the converting merkle tree code (or the root code) slightly to compensate in a later update.

@cjjdespres cjjdespres requested a review from a team as a code owner October 9, 2025 15:46
@cjjdespres cjjdespres force-pushed the cjjdespres/hard-fork-genesis-slot-delta branch from 1e7acef to 7136e8e Compare October 9, 2025 15:48
@cjjdespres
Copy link
Member Author

!ci-build-me

; zkapp_cmd_limit_hardcap : int option [@default None]
; slot_tx_end : int option [@default None]
; slot_chain_end : int option [@default None]
; hard_fork_genesis_slot_delta : int option [@default None]
Copy link
Member

Choose a reason for hiding this comment

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

Could we add a in-code documentation here indicating the purpose? So people don't have to track back to this PR for this option? Thanks :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I have added some documentation.

@cjjdespres
Copy link
Member Author

!ci-build-me

@cjjdespres
Copy link
Member Author

Right, this branch is out of date as well.

The hard_fork_genesis_slot_delta option tracks the slot span between the
slot_chain_end and the planned proof.fork.global_slot_since_genesis of
an upcoming hard fork. In a future commit it will be incorporated into
the hard fork account migration and the root ledger sync mechanism.
@cjjdespres cjjdespres force-pushed the cjjdespres/hard-fork-genesis-slot-delta branch from 6fbb932 to 2631f26 Compare October 15, 2025 15:51
@cjjdespres
Copy link
Member Author

!ci-build-me

@cjjdespres cjjdespres merged commit 32b5df4 into compatible Oct 15, 2025
55 checks passed
@cjjdespres cjjdespres deleted the cjjdespres/hard-fork-genesis-slot-delta branch October 15, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants