Skip to content

Commit

Permalink
fix lighthouse launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
qu0b committed Mar 6, 2024
1 parent 5517e63 commit 3d01794
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions deps/launchers/cl/launch-lighthouse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,21 @@ if [ "$MOCK_BUILDER" == 1 ]; then
)
validator_args+=(
--builder-proposals
--builder-boost-factor 10
--builder-fallback-disable-checks
)

# at random add the flag prefer-builder-proposals or builder-boost-factor
if [ $((RANDOM%2)) -eq 0 ]; then
echo "Adding prefer-builder-proposals flag"
validator_args+=(
--prefer-builder-proposals
)
else
echo "Adding prefer-builder-proposals flag"
validator_args+=(
--builder-boost-factor $((RANDOM % 100 + 1))
)
fi

mock-builder "${mock_builder_args[@]}" > /data/logs/"service_$CONTAINER_NAME--builder" 2>&1 &
fi

Expand Down

0 comments on commit 3d01794

Please sign in to comment.