build: bump amaru to pragma-org/amaru main (5923f085)#47
Merged
Conversation
7bb4102a revert forecast-stake hack (state.rs:448 cause) + 4165a5f4 null active_stake. Stops before f059f024/4de2db13 (rename --cardano-db-dir + remove --targets-file = call-site rework).
…reate-snapshots CLI KtorZ renamed --cardano-db-dir -> --cardano-node-db, replaced --targets-file with repeated --snapshot "<point>::<parent_point>" (Point = <slot>.<hash>), and made --epoch the TARGET epoch needing the 3 prior snapshots. Adapt the producer invocations (3 --snapshot args, --epoch = first_epoch + 3 for create-snapshots and amaru bootstrap) and the two bats amaru stubs that parsed the old --targets-file.
…n CLI amaru dropped 'run --global-parameters-file' for individual AMARU_GLOBAL_* cli/env overrides and renamed --era-history-file to --era-history. For a Testnet network the global parameters now come from those overrides, so the relay entrypoint derives AMARU_GLOBAL_* from global-parameters.json before exec'ing amaru run (create-snapshots/bootstrap don't use global params). nix checks, the relay bats, and docs follow.
… #959-era harness) Post pragma-org/amaru#959, a Testnet network's "amaru bootstrap" takes its global parameters as AMARU_GLOBAL_* overrides and "amaru run" requires --era-history. - bootstrap-producer.sh: derive k, 1/f and scale_factor from the shelley genesis and export AMARU_GLOBAL_* so create-snapshots and bootstrap get the custom testnet parameters (epoch_length = k * (1/f) * scale_factor). - nix/checks.nix: amaru-run-bootstrap passes --era-history. Harness for bootstrapping a fast-tracked (all hard forks at epoch 0) cluster against amaru #959, used to reproduce and validate the null-era divide-by-zero fix (lambdasistemi/amaru fix/era-summary-exclusive-end).
feat/testnet-bootstrap is fully merged upstream; track main directly. Validated locally with the epoch125 testnet profile: bootstrap (wrote /srv/amaru/testnet_42) + relay follow (tip tracks p1). Requires the testnet-side --era-history / AMARU_GLOBAL_* relay CLI (no --global-parameters-file) and epoch_length=125 (k*(1/f)*scale_factor).
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.
What
Bump the producer image's amaru to pragma-org/amaru main (
5923f0858da464256e1664337b478511b6d3fcee, 2026-06-25). The fork'sfeat/testnet-bootstrapline is fully merged upstream, so we track main directly instead of the (now-redundant) fork branch.Supersedes #45 (which pinned the orphaned pre-merge
4de2db13).Why this commit + what the testnet must do
Validated locally against the
cardano_amarucluster:bootstrap-producerrunscreate-snapshots+bootstrapand writes/srv/amaru/testnet_42(exit 0).amaru-relay-1tip trackedp1(104→111→120→125→137→143, exact-match twice).Main introduced two deliberate API changes the testnet must accommodate (no amaru code change needed):
epoch_length = active_slot_coeff_inverse * epoch_length_scale_factor * consensus_security_paramis now an invariant (no directepoch_lengthoverride). Thecardano_amaruprofile must use epoch_length = 125 (k=5, 1/f=5, scale_factor=5) — 120 is unreachable (4.8) and falls back to mainnet defaults →expected epoch 0bootstrap failure.amaru runrenamed--era-history-file→--era-historyand dropped--global-parameters-file(global params come fromAMARU_GLOBAL_*env).Non-blocking: relay logs recurring
keepalive-NN terminated/invalid state: Idle <- Donepeer-keepalive churn; it follows regardless.