Skip to content

Commit

Permalink
remove trusted block data extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 14, 2025
1 parent 8042215 commit d252567
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions a3p-integration/proposals/z:acceptance/host/before-test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ create_volume_assets() {

main() {
create_volume_assets
set_trusted_block_data
start_follower
}

Expand All @@ -52,26 +51,6 @@ run_command_inside_container() {
-c "$entrypoint"
}

set_trusted_block_data() {
local entrypoint
local last_block_info

entrypoint="
#! /bin/bash
set -o errexit -o errtrace -o pipefail
source /usr/src/upgrade-test-scripts/env_setup.sh > /dev/null 2>&1
cat \$STATUS_FILE
"
last_block_info="$(
run_command_inside_container \
"$entrypoint"
)"

TRUSTED_BLOCK_HASH="$(echo "$last_block_info" | jq '.SyncInfo.latest_block_hash' --raw-output)"
TRUSTED_BLOCK_HEIGHT="$(echo "$last_block_info" | jq '.SyncInfo.latest_block_height' --raw-output)"
}

start_follower() {
wait_for_network_config

Expand Down Expand Up @@ -150,8 +129,6 @@ start_follower() {
"$entrypoint" \
--env "MESSAGE_FILE_PATH=$CONTAINER_MESSAGE_FILE_PATH" \
--env "OUTPUT_DIR=$OUTPUT_DIRECTORY" \
--env "TRUSTED_BLOCK_HASH=$TRUSTED_BLOCK_HASH" \
--env "TRUSTED_BLOCK_HEIGHT=$TRUSTED_BLOCK_HEIGHT" \
--mount "source=$MESSAGE_FILE_PATH,target=$CONTAINER_MESSAGE_FILE_PATH,type=bind" \
--mount "source=$OUTPUT_DIRECTORY,target=$OUTPUT_DIRECTORY,type=bind" \
--mount "source=$NETWORK_CONFIG_FILE_PATH,target=$NETWORK_CONFIG_FILE_PATH/network-config,type=bind" > "$FOLLOWER_LOGS_FILE" 2>&1
Expand Down

0 comments on commit d252567

Please sign in to comment.