Skip to content

Instantly share code, notes, and snippets.

@rfikki
Last active August 2, 2023 14:06
Show Gist options
  • Save rfikki/e2a8c47f4460668557b1e3ec8bae9c11 to your computer and use it in GitHub Desktop.
Save rfikki/e2a8c47f4460668557b1e3ec8bae9c11 to your computer and use it in GitHub Desktop.
Updated 04/18/2021
admin.addPeer("enode://da0c61fe14ba9da1a9835b59d811553d21787448724cfe6412bc17f0b14586df91826d8286b2137342d09a8631df5ea548cf301294b05657c2a90f9c3d526721@143.198.119.44:30303");
admin.addPeer("enode://3e2287c6caf363357efc600611ccb777e6997ef8b749b1f87e94d3a7d2b466bbefba163b0620c88804f18bc70cfbe68538720ac2644fc1c970848488cdca0c7a@143.198.114.251:30303");
admin.addPeer("enode://15ea76b5d30ce9eaabf6a9a8fe5ca0ff032534d296b5b8ca6e00a730d08a4aaa019077c382a6b2d08ebc7cf6f8eb888f5e00e0dd378798e3459a555538654370@157.230.6.79:30303");
admin.addPeer("enode://2e718763172902a8fa4bcdda45f77a5c2688de5230e184d154e4867922b8f6ad23e1016379715cb5f55f6c79060563f93896035e35dfb47361d08599d4908ae8@143.198.118.178:30303");
admin.addPeer("enode://9d45f21eeb37bd5555fac0c4094ae3d4d144d93e2313aeb891bf3054b0dcf6ca817961ed29ea1de00389b5c36dc6bbe9b00443e367b16ed8ba251cea6c242044@94.176.237.140:30303");
admin.addPeer("enode://2493b5b8407ccb1c448d7ad358e838066640f273442730caf80acde2fe98522b1d9dcebd2dc982efe44911a49779888fe72defc181c29596facff05e11958330@68.183.96.143:30303");
admin.addPeer("enode://0eaf8f584181e3c653c30382a8362586133714b1c1c9854774e9209e4615268781a174d5953618560c64236156af2cd72d69f411e567873f9a1f70c1347bc5ce@143.198.121.200:30303");
admin.addPeer("enode://0fdca3b09a4f0f6f8c0e01512fd5506c511cbeaa3441434c80f087bd117fe79677662649c1c7be4ab714875f125ff621e4bdec897e754f89e04fc85f82bc9391@116.202.170.226:30303");
admin.addPeer("enode://be3e34f0cf27e7baa5dc34de25e0295834cea4b30180fb18927864ff102d25889985023b5a51e00846ccf93cf9f5b451cad51c13062f48a23b2951e627269185@157.230.59.231:30303");
@sh4dowb
Copy link

sh4dowb commented Dec 7, 2022

can someone please help me on what command to add peers?

~/.ethereum/geth # geth attach http://localhost:8545
Welcome to the Geth JavaScript console!

instance: Geth/v1.11.0-unstable-ec2ec2d0/linux-amd64/go1.19.3
at block: 15569791 (Mon Sep 19 2022 19:59:35 GMT+0000 (UTC))
 modules: eth:1.0 net:1.0 rpc:1.0 web3:1.0

To exit, press ctrl-d or type exit
> admin.addPeer("enode://15ea76b5d30ce9eaabf6a9a8fe5ca0ff032534d296b5b8ca6e00a730d08a4aaa019077c382a6b2d08ebc7cf6f8eb888f5e00e0dd378798e3459a555538654370@157.230.6.79:30303");
ReferenceError: admin is not defined
        at <eval>:1:1(0)

>

add "admin" on --http-api
like
--http-api "eth,admin"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment