-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·40 lines (31 loc) · 1.32 KB
/
Copy pathstart.sh
File metadata and controls
executable file
·40 lines (31 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
# ============================================================
# Angel Pulse safe starter.
#
# This script is intentionally minimal and safe by default.
# Review config.example.toml before running with real credentials.
# ============================================================
set -euo pipefail
BINARY="${BINARY:-./target/release/angel_pulse}"
LOG_DIR="${LOG_DIR:-./logs}"
LOG_FILE="${LOG_FILE:-$LOG_DIR/angel_pulse_preview.log}"
mkdir -p "$LOG_DIR"
# Basic required environment.
# Keep dry-run enabled by default.
export RUST_LOG="${RUST_LOG:-info}"
export ANGEL_PULSE_ARB_DRY_RUN="${ANGEL_PULSE_ARB_DRY_RUN:-1}"
export ANGEL_PULSE_ARB_MAX_SENDS="${ANGEL_PULSE_ARB_MAX_SENDS:-1}"
export ANGEL_PULSE_ENABLE_SHREDSTREAM="${ANGEL_PULSE_ENABLE_SHREDSTREAM:-0}"
export ANGEL_PULSE_HTTP_USE_SYSTEM_PROXY="${ANGEL_PULSE_HTTP_USE_SYSTEM_PROXY:-0}"
# Optional wallet path for local paper/dry-run testing.
# Do not paste private keys or secrets into this script.
export SOLANA_KEYPAIR_PATH="${SOLANA_KEYPAIR_PATH:-$HOME/.solana/wallet.json}"
echo "Starting Angel Pulse"
echo "Binary: $BINARY"
echo "Log file: $LOG_FILE"
if [ ! -x "$BINARY" ]; then
echo "Binary not found or not executable: $BINARY"
echo "Build the binary first, or set BINARY=/path/to/angel_pulse."
exit 1
fi
"$BINARY" 2>&1 | tee "$LOG_FILE"