Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(spartan): making the spartan script add the coinbase address #11235

Merged
merged 1 commit into from
Feb 5, 2025
Merged
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
16 changes: 11 additions & 5 deletions spartan/releases/testnet/aztec-spartan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,18 @@ configure_environment() {
COINBASE="$CLI_COINBASE"
else
while true; do
read -p "Validator Address (default: 0xbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa): " COINBASE
COINBASE=${COINBASE:-0xbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
if [[ "$COINBASE" =~ ^0x[a-fA-F0-9]{40}$ ]]; then
break
read -p "Validator Address (Coinbase): " COINBASE

if [ -z "$COINBASE" ]; then
echo -e "${RED}Error: Validator Address (Coinbase) is required${NC}"
else
echo -e "${RED}Error: Invalid COINBASE address. Please enter a valid Ethereum address.${NC}"
if [[ "$COINBASE" =~ ^0x[a-fA-F0-9]{40}$ ]]; then
break
else
echo -e "${RED}Error: Invalid COINBASE address. Please enter a valid Ethereum address.${NC}"
fi
fi

done
fi

Expand Down Expand Up @@ -295,6 +300,7 @@ P2P_UDP_LISTEN_ADDR=0.0.0.0:${P2P_PORT}
P2P_TCP_LISTEN_ADDR=0.0.0.0:${P2P_PORT}
DATA_DIRECTORY=/var/lib/aztec
PEER_ID_PRIVATE_KEY=${PEER_ID_PRIVATE_KEY}
COINBASE=${COINBASE}
EOF

# Generate docker-compose.yml
Expand Down
Loading