Skip to content

Commit

Permalink
Set fitness to 1 instead of -1 at activation (#534)
Browse files Browse the repository at this point in the history
A bug was uncovered during mumbai activation, where nodes were unable to
activate and were crashing.

The [fix](https://gitlab.com/tezos/tezos/-/merge_requests/7462/diffs)
broke dailynet because it is no longer possible to activate with a
fitness of -1 (which is how we have been activating chains since the
beginning of tezos-k8s).

Replacing this value to 1 fixes the issue for dailynet and also does not
appear to be causing any issue with v15.1.
  • Loading branch information
nicolasochem authored Jan 26, 2023
1 parent 274cb6c commit 284b055
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/tezos/scripts/chain-initiator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ echo Activating chain:
$CLIENT -d /var/tezos/client --block \
genesis activate protocol \
{{ .Values.activation.protocol_hash }} \
with fitness -1 and key \
with fitness 1 and key \
$( cat /etc/tezos/activation_account_name ) \
and parameters /etc/tezos/parameters.json 2>&1 | head -200
2 changes: 1 addition & 1 deletion test/charts/private-chain.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ spec:
$CLIENT -d /var/tezos/client --block \
genesis activate protocol \
PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY \
with fitness -1 and key \
with fitness 1 and key \
$( cat /etc/tezos/activation_account_name ) \
and parameters /etc/tezos/parameters.json 2>&1 | head -200
Expand Down

0 comments on commit 284b055

Please sign in to comment.