Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
coincashew authored Jul 30, 2024
2 parents 1634c72 + 1212aa0 commit dbbc1be
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: test_deployment_full_staking_node

on:
push:
branches:
- main
pull_request:

jobs:
run-lido-csm-staking-node:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: ./install-nimbus-nethermind.sh skip
- name: Deploy a Lido CSM Staking node, consisting of EL CL VC and mevboost
run: python3 ./deploy-nimbus-nethermind.py --skip_prompts="true" --network="HOLESKY" --install_config="Lido CSM Staking Node"
16 changes: 12 additions & 4 deletions deploy-nimbus-nethermind.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
import argparse
from dotenv import load_dotenv, dotenv_values

import os

def clear_screen():
if os.name == 'posix': # Unix-based systems (e.g., Linux, macOS)
os.system('clear')
elif os.name == 'nt': # Windows
os.system('cls')

clear_screen() # Call the function to clear the screen

# Valid configurations
valid_networks = ['MAINNET', 'HOLESKY', 'SEPOLIA']
valid_exec_clients = ['NETHERMIND']
Expand Down Expand Up @@ -230,7 +240,6 @@ def get_computer_platform():
# Set to lowercase
consensus_client = consensus_client.lower()

Screen().clear()

# Validates an eth address
def is_valid_eth_address(address):
Expand All @@ -248,7 +257,6 @@ def is_valid_eth_address(address):
else:
print("Invalid Ethereum address. Try again.")

Screen().clear()

# Validates an CL beacon node address with port
def validate_beacon_node_address(ip_port):
Expand All @@ -272,7 +280,7 @@ def validate_beacon_node_address(ip_port):
else:
BN_ADDRESS=args.vc_only_bn_address

Screen().clear()


if not args.skip_prompts:
# Format confirmation message
Expand Down Expand Up @@ -797,4 +805,4 @@ def finish_install():
install_nimbus()
run_nimbus_checkpoint_sync()
install_nimbus_validator()
finish_install()
finish_install()

0 comments on commit dbbc1be

Please sign in to comment.