Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion contrib/offline-replay/offline_replay_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export FD_BRANCH="main"

# Agave Repo
export AGAVE_REPO="/path/to/agave"
export AGAVE_LEDGER_TOOL="${AGAVE_REPO}/target/release/agave-ledger-tool"

# Network Specific Parameters
export NETWORK="mainnet"
Expand Down
12 changes: 11 additions & 1 deletion contrib/offline-replay/run_offline_replay_backtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,17 @@ while true; do
cd $AGAVE_REPO
git pull
git checkout $AGAVE_TAG
cargo build --release

AGAVE_VERSION=$(echo "$AGAVE_TAG" | sed 's/^v//')
if [ "$(printf '%s\n' "$AGAVE_VERSION" "3.1.0" | sort -V | head -n1)" = "3.1.0" ]; then
cargo clean
cargo build --manifest-path dev-bins/Cargo.toml -p agave-ledger-tool --release
AGAVE_LEDGER_TOOL="${AGAVE_REPO}/dev-bins/target/release/agave-ledger-tool"
else
cargo clean
cargo build --release
AGAVE_LEDGER_TOOL="${AGAVE_REPO}/target/release/agave-ledger-tool"
fi

send_slack_message "Bucket Slot \`$NEWEST_BUCKET_SLOT\` is greater than the last run bucket slot \`$LATEST_RUN_BUCKET_SLOT\`"

Expand Down
Loading