Revision 4bb400e9d46bf96ea8858064a7258e824967f268 authored by iguerNL@Functori on 20 December 2023, 08:32:21 UTC, committed by iguerNL@Functori on 24 January 2024, 06:19:10 UTC
1 parent 44d7ef3
Raw File
patch-yes_node.sh
#!/bin/sh

# Exit on non-zero status
set -e

# Patch the node sources:
# - the cryptographic library to use fake secret keys,
# - the stresstest command of each protocol that is not frozen to make it work
#   on Tezos Mainnet

for arg in "$@"; do
  case $arg in
  "--dry-run")
    dry_run='--dry-run'
    ;;
  esac
done

#shellcheck disable=SC2086
patch $dry_run -p 1 < scripts/yes-node.patch

for f in src/proto_*/lib_client_commands/client_proto_stresstest_commands.ml; do
  #shellcheck disable=SC2086
  patch $dry_run -p 1 "$f" < scripts/yes-stresstest.patch
done
back to top