Skip to content

John0n1/eth-meshseed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

eth-meshseed

Small script to find good Ethereum peers from public sources and add them to your node via JSON-RPC.

What it does

  • Fetches candidate enodes from web discovery data
  • Prioritizes peers close to your location (same country first)
  • Filters low-quality/stale peers
  • Skips self + already-connected peers
  • Adds peers with admin_addPeer using curl

Requirements

  • bash
  • curl
  • jq
  • rg (ripgrep)
  • Node JSON-RPC with admin_* enabled (Geth/Nethermind/Reth-compatible admin endpoint)

Usage

# Dry run (preview only)
DRY_RUN=1 RPC_URL=http://127.0.0.1:8545 ./scripts/eth-meshseed.sh

# Live add (default target is 25)
RPC_URL=http://127.0.0.1:8545 ./scripts/eth-meshseed.sh

Useful options

TARGET_NEW_PEERS=40
COUNTRY_CODE=NO
MIN_SEEN_COUNT=5
MAX_LAST_SEEN_HOURS=72
MAX_PAGES=8

Notes

  • Uses official mainnet geth bootnodes as fallback source
  • Prints before/after peer count and add summary
  • Safe to run repeatedly (dedupes current peers)

License

MIT License

About

Identifies reliable Ethereum peers from public sources and eliminates low-quality or outdated peers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages