Skip to content

Commit

Permalink
chore(spartan): making the spartan script add the coinbase address (#…
Browse files Browse the repository at this point in the history
…11235)

This was missing on the latest testnet. A quick nit. Also made it
mandatory so the coinbase address isn't mistakenly set to the null addr
  • Loading branch information
signorecello authored Feb 5, 2025
1 parent 7a2870f commit b97ff0d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions spartan/releases/testnet/aztec-spartan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,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 @@ -302,6 +307,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

0 comments on commit b97ff0d

Please sign in to comment.