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

Scale up validator balances to 1024 ETH and 0x02 credentials #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion scripts/build-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gen_all_config(){
# run ethereum-genesis-generator
docker run --rm -u $UID -v $PWD/temp/output:/data \
-v $PWD/temp/input:/config \
ethpandaops/ethereum-genesis-generator:ephemery-1.1.0 \
ethpandaops/ethereum-genesis-generator:ephemery-1.1.1 \
all

# copy config folder structure
Expand Down
42 changes: 42 additions & 0 deletions utils/update-validator-creds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

# Process each file in validators directory
for file in validators/*; do
# Skip if not a file
[ ! -f "$file" ] && continue

# Create temp file
temp_file="${file}.tmp"

# Process file line by line
while IFS= read -r line; do
# Skip comments and empty lines
[[ $line =~ ^#.*$ ]] || [[ -z $line ]] && echo "$line" >> "$temp_file" && continue

# Split line into components
pubkey=$(echo "$line" | cut -d':' -f1)
wdcreds=$(echo "$line" | cut -d':' -f2)

# Check if originally had 0x prefix
had_prefix=false
[[ $wdcreds == 0x* ]] && had_prefix=true

# Remove 0x prefix if exists for comparison
wdcreds_stripped=${wdcreds#0x}

# Apply wdcreds rules
if [[ $wdcreds_stripped == 01* ]]; then
wdcreds_stripped="02${wdcreds_stripped#01}"
$had_prefix && wdcreds="0x$wdcreds_stripped" || wdcreds=$wdcreds_stripped
elif [[ $wdcreds_stripped == 00* ]]; then
wdcreds_stripped="020000000000000000000000deaddeaddeaddeaddeaddeaddeaddeaddeaddead"
$had_prefix && wdcreds="0x$wdcreds_stripped" || wdcreds=$wdcreds_stripped
fi

# Output with new value
echo "$pubkey:$wdcreds:1024000000000" >> "$temp_file"
done < "$file"

# Replace original with temp file
mv "$temp_file" "$file"
done
2,000 changes: 1,000 additions & 1,000 deletions validators/axol-node1.txt

Large diffs are not rendered by default.

4,000 changes: 2,000 additions & 2,000 deletions validators/chainsafe-node1.txt

Large diffs are not rendered by default.

4,000 changes: 2,000 additions & 2,000 deletions validators/chainsafe-node2.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/coincashew.eth-node1.txt

Large diffs are not rendered by default.

400 changes: 200 additions & 200 deletions validators/ephemery-node1.txt

Large diffs are not rendered by default.

10,000 changes: 5,000 additions & 5,000 deletions validators/ethpandaops-node1.txt

Large diffs are not rendered by default.

500 changes: 250 additions & 250 deletions validators/eviljordan.eth-node1.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/icelandcalling-node1.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/icelandcalling-node2.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/icelandcalling-node3.txt

Large diffs are not rendered by default.

5,000 changes: 2,500 additions & 2,500 deletions validators/laibe-node1.txt

Large diffs are not rendered by default.

3,400 changes: 1,700 additions & 1,700 deletions validators/mario-node1.txt

Large diffs are not rendered by default.

3,400 changes: 1,700 additions & 1,700 deletions validators/mario-node2.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/metanull-node1.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/metanull-node2.txt

Large diffs are not rendered by default.

4,000 changes: 2,000 additions & 2,000 deletions validators/pk910-node1.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/pk910-node2.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/pk910-node3.txt

Large diffs are not rendered by default.

1,000 changes: 500 additions & 500 deletions validators/pk910-node5.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/remyroy-node1.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/remyroy-node2.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/seamonkey.eth-node1.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/seamonkey.eth-node2.txt

Large diffs are not rendered by default.

2,000 changes: 1,000 additions & 1,000 deletions validators/seamonkey.eth-node3.txt

Large diffs are not rendered by default.

200 changes: 100 additions & 100 deletions validators/superphiz.eth-node1.txt

Large diffs are not rendered by default.