feat(scripts): register Dijkstra-era pools with BLS keys, start fast flavor in target era directly - #157
Merged
Merged
Conversation
Generate BLS keypairs for pools and embed them in the pool registration certificate when both cardano-cli and cardano-node support Leios BLS (dijkstra node key-gen-BLS, --shelley-bls-key), gated on PROTOCOL_VERSION>=12. Fast flavor embeds the BLS key directly since its one-shot pool registration can land post-Dijkstra. Slow flavor registers pools early (pre-Dijkstra, shelley-era cert has no BLS field) and re-registers with a dijkstra-era cert once hf_to_dijkstra confirms the era.
mkoura
force-pushed
the
feat/dijkstra-bls-pool-keys
branch
from
August 18, 2026 11:59
c9283d8 to
dcba3ef
Compare
Remove the TMP_PROTOCOL_VERSION clamp and hf_to_dijkstra() workaround. Genesis now sets protocolParams.protocolVersion.major to the real PROTOCOL_VERSION and TestDijkstraHardForkAtEpoch=0 handles the PV12 case, so the cluster runs in the target era from slot 0 instead of starting at PV11 and hard-forking to Dijkstra after the fact.
mkoura
force-pushed
the
feat/dijkstra-bls-pool-keys
branch
from
August 18, 2026 14:18
dcba3ef to
759d814
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dijkstra node key-gen-BLS,--shelley-bls-key), gated onPROTOCOL_VERSION>=12.reregister_pools_with_bls()step oncehf_to_dijkstraconfirms the chain reached Dijkstra.TMP_PROTOCOL_VERSIONclamp andhf_to_dijkstra()workaround from fast-flavor start: genesis now setsprotocolParams.protocolVersion.majorto the realPROTOCOL_VERSIONandTestDijkstraHardForkAtEpoch=0handles PV12, so the cluster runs in the target era from slot 0 instead of starting at PV11 and hard-forking afterward.