-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PM-1375 - Update seeds list for mainnet
- Loading branch information
1 parent
83258f0
commit eac5de1
Showing
6 changed files
with
94 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Validate | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
jobs: | ||
static-code-analysis: | ||
runs-on: minafoundation-default-runners | ||
steps: | ||
- name: 📥 Checkout | ||
uses: actions/[email protected] | ||
- name: 🐍 Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.10.12 | ||
- name: 🔍 Run linting | ||
uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
- id: file-contents-sorter | ||
files: "networks/" | ||
- repo: https://github.com/shellcheck-py/shellcheck-py | ||
rev: v0.10.0.1 | ||
hooks: | ||
- id: shellcheck | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
types_or: [markdown, yaml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Mina Foundation Seed Lists | ||
|
||
This repository contains the seed lists published by Mina Foundation. | ||
|
||
The lists are accessible at `bootnodes.minaprotocol.com`, e.g.: | ||
|
||
- `mainnet`: https://bootnodes.minaprotocol.com/networks/mainnet.txt | ||
|
||
## How to Submit a New Seed | ||
|
||
Thank you for considering contributing to the Mina Foundation Seed Lists! Follow these steps to submit a new seed for the community: | ||
|
||
1. **Fork the Repository**: Click on the "Fork" button at the top-right corner of this repository's page. This will create a copy of the repository in your GitHub account. | ||
|
||
2. **Add Your Seed**: Edit the appropriate seed list file (e.g., `mainnet.txt`) in your forked repository. Add your seed to the list following the existing format. | ||
|
||
3. **Ensure Precommit Checks Pass**: Before submitting your pull request, make sure that all precommit checks are passing. These checks may include linting, formatting, and any other relevant tests. | ||
|
||
4. **Submit Your Pull Request**: Once you've added your seed and ensured that all checks pass, submit a pull request (PR) to the main repository. In your PR description, provide a brief explanation of the seed you're adding and any relevant details. | ||
|
||
5. **Review and Merge**: Your PR will be reviewed by the maintainers of the repository. They may request changes or provide feedback. Once everything looks good, your PR will be merged into the main branch, and your seed will be included in the Mina Foundation Seed Lists. | ||
|
||
Thank you for helping to grow the Mina Protocol community! | ||
|
||
--- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/dns4/mina-mainnet-seed.staketab.com/tcp/10003/p2p/12D3KooWSDTiXcdBVpN12ZqXJ49qCFp8zB1NnovuhZu6A28GLF1J | ||
/dns4/mina-seed-1.zkvalidator.com/tcp/8302/p2p/12D3KooWSR7LMBSfEk3LQUudmsX27yuRHe9NUxwLumurGF5P1MNS | ||
/dns4/mina-seed.bitcat365.com/tcp/10001/p2p/12D3KooWQzozNTDKL7MqUh6Nh11GMA4pQhRCAsNTRWxCAzAi4VbE | ||
/dns4/seed-0-production-mainnet.minaprotocol.network/tcp/10001/p2p/12D3KooWPywsM191KGGNVGiNqN35nyyJg4W2BhhYukF6hP9YBR8q | ||
/dns4/seed-1-production-mainnet.minaprotocol.network/tcp/10001/p2p/12D3KooWGB6mJ9Ub9qRBDgHhedNXH4FawWjGQGGN2tQKaKa3gK2h | ||
/dns4/seed-1.mainnet.o1test.net/tcp/10000/p2p/12D3KooWCa1d7G3SkRxy846qTvdAFX69NnoYZ32orWVLqJcDVGHW | ||
/dns4/seed-2.mainnet.o1test.net/tcp/10001/p2p/12D3KooWK4NfthViCTyLgVQa1WvqDC1NccVxGruCXCZUt3GqvFvn | ||
/dns4/seed-3.mainnet.o1test.net/tcp/10002/p2p/12D3KooWNofeYVAJXA3WGg2qCDhs3GEe71kTmKpFQXRbZmCz1Vr7 | ||
/dns4/seed.minaexplorer.com/tcp/8302/p2p/12D3KooWR7coZtrMHvsgsfiWq2GESYypac3i29LFGp6EpbtjxBiJ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
seed_list="${1:-seeds.txt}" | ||
exit_code=0 | ||
|
||
check_seed () { | ||
seed="$1" | ||
host=$(echo "$seed" | cut -d '/' -f3) | ||
port=$(echo "$seed" | cut -d '/' -f5) | ||
|
||
if timeout 1 nc -z "$host" "$port" 1>/dev/null 2>&1; then | ||
echo "$seed: ONLINE" | ||
else | ||
echo "$seed: OFFLINE" | ||
exit_code=1 | ||
fi | ||
} | ||
|
||
while read -r seed; do | ||
check_seed "$seed" | ||
done < "$seed_list" | ||
|
||
exit $exit_code |