Skip to content

Commit

Permalink
Update airchain.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
candy1264 authored Jun 23, 2024
1 parent cc1d766 commit 00b9924
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion airchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,17 @@ sudo mv eigenlayer /usr/local/bin/eigenlayer
# 定义key_file的路径
key_file="/root/.eigenlayer/operator_keys/node.ecdsa.key.json" # 替换为你的实际文件路径

#!/bin/bash

# 定义key_file的路径
key_file="/path/to/your/keyfile" # 替换为你的实际文件路径

# 检查文件是否存在
if [ -f "$key_file" ]; then
echo "文件 $key_file 已经存在,删除文件"
rm -f "$key_file"
echo "删除文件后执行创建操作"
echo "123456" | eigenlayer operator keys create --key-type ecdsa --insecure node
else
echo "文件 $key_file 不存在,执行创建操作"
echo "123456" | eigenlayer operator keys create --key-type ecdsa --insecure node
Expand All @@ -168,7 +175,6 @@ public_key=$(extract_public_key)
# 打印提取到的公钥(或者你可以在这里进行其他操作)
echo "提取到的公钥是: $public_key"


#部署Tracks服务#
cd /data/airchains/tracks/ && make build

Expand Down

0 comments on commit 00b9924

Please sign in to comment.