Skip to content

Commit

Permalink
Fix F3 CLI templates to reflect manifest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
masih committed Jan 31, 2025
1 parent b9544c9 commit d5ae889
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/templates/f3_finality_cert.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Power Table:
Next: {{.SupplementalData.PowerTable}}
Delta: {{ptDiffToString .PowerTableDelta}}
Finalized Chain:
Length: {{ $chainLength := len .ECChain -}}{{ $chainLength }}
Length: {{ $chainLength := len .ECChain.TipSets -}}{{ $chainLength }}
Epochs: {{ .ECChain.Base.Epoch -}}-{{ .ECChain.Head.Epoch }}
Chain:
{{- $maxTipSets := 10 -}}
{{- $maxTipSetKeys := 2 -}}
{{- range $i, $tipset := .ECChain -}}
{{- range $i, $tipset := .ECChain.TipSets -}}
{{- if lt $i $maxTipSets -}}
{{- if lt (add $i 1) $chainLength }}
├──
Expand Down
12 changes: 12 additions & 0 deletions cli/templates/f3_manifest.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Manifest:

GPBFT Delta: {{.Gpbft.Delta}}
GPBFT Delta BackOff Exponent: {{.Gpbft.DeltaBackOffExponent}}
GPBFT Quality Delta Multiplier: {{.Gpbft.QualityDeltaMultiplier}}
GPBFT Max Lookahead Rounds: {{.Gpbft.MaxLookaheadRounds}}
GPBFT Chain Proposed Length: {{.Gpbft.ChainProposedLength}}
GPBFT Rebroadcast Backoff Base: {{.Gpbft.RebroadcastBackoffBase}}
GPBFT Rebroadcast Backoff Exponent: {{.Gpbft.RebroadcastBackoffExponent}}
GPBFT Rebroadcast Backoff Spread: {{.Gpbft.RebroadcastBackoffSpread}}
Expand All @@ -27,3 +29,13 @@ Manifest:
Certificate Exchange Server Timeout: {{.CertificateExchange.ServerRequestTimeout}}
Certificate Exchange Min Poll Interval: {{.CertificateExchange.MinimumPollInterval}}
Certificate Exchange Max Poll Interval: {{.CertificateExchange.MaximumPollInterval}}

PubSub Compression Enabled: {{.PubSub.CompressionEnabled}}

Chain Exchange Subscription Buffer Size: {{.ChainExchange.SubscriptionBufferSize}}
Chain Exchange Max Chain Length: {{.ChainExchange.MaxChainLength}}
Chain Exchange Max Instance Lookahead: {{.ChainExchange.MaxInstanceLookahead}}
Chain Exchange Max Discovered Chains Per Instance: {{.ChainExchange.MaxDiscoveredChainsPerInstance}}
Chain Exchange Max Wanted Chains Per Instance: {{.ChainExchange.MaxWantedChainsPerInstance}}
Chain Exchange Rebroadcast Interval: {{.ChainExchange.RebroadcastInterval}}
Chain Exchange Max Timestamp Age: {{.ChainExchange.MaxTimestampAge}}

0 comments on commit d5ae889

Please sign in to comment.