geth 이더리움 테스트넷 ROPSTEN 연결하기

in #kr7 years ago (edited)

geth 를 테스트넷 (ROPSTEN)에 연결해서 실행하기

  • 유효한 peer를 찾는 것이 중요
  • 테스트넷 Sync에 하루 이상 걸림 (인내심 필요)
  • Sync 중일 때의 현상 (geth 콘솔에서의 상황)
    • eth.syncing 의 결과가 false가 아니다
    • (모든 상황이 정상이라면) net.peerCount 의 결과가 차츰 증가한다
    > net.peerCount
    7
    > eth.blockNumber
    0
    > eth.syncing
    {
      currentBlock: 2953077,
      highestBlock: 2953152,
      knownStates: 20414019,
      pulledStates: 20409271,
      startingBlock: 0
    }
    
  • Sync 완료후 현상 (geth 콘솔에서의 상황)
    > net.peerCount
    8
    > eth.blockNumber
    3103797
    > eth.syncing
    false
    

관련 명령

  • geth 실행
    $ geth --testnet --fast --rpc --cache=1024  --rpcaddr 0.0.0.0 --rpccorsdomain "*" --verbosity=6 --bootnodes "enode://20c9ad97c081d63397d7b685a412227a40e23c8bdc6688c6f37e97cfbc22d2b4d1db1510d8f61e6a8866ad7f0e17c02b14182d37ea7c3c8b9c2683aeb6b733a1@52.169.14.227:30303,enode://6ce05930c72abc632c58e2e4324f7c7ea478cec0ed4fa2528982cf34483094e9cbc9216e7aa349691242576d552a2a56aaeae426c5303ded677ce455ba1acd9d@13.84.180.240:30303,enode://94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09@192.81.208.223:30303"
    $ geth attach ~/.ethereum/testnet/geth.ipc
    
  • geth 콘솔에서 peer 추가
    admin.addPeer("enode://f4642fa65af50cfdea8fa7414a5def7bb7991478b768e296f5e4a54e8b995de102e0ceae2e826f293c481b5325f89be6d207b003382e18a8ecba66fbaf6416c0@33.4.2.1:30303")
    

2018.4.25. 현재 유효한 peer 리스트

  • enode://0de6029588e1e90de1e2b78f2369ceedab6f2e2e663942d3edc12c49e64cd981861e906afde234831c5dcbd18901d105cc0e432f5c6ff1310f590ff256907684@174.138.15.5:30303
  • enode://3dc45adb7f985af1449e275067a8610741a7cad65e22eac399c18a6b46b1edb5cf98a7aa0cd2a446ca197a293a279fbfe65720c65ec7c5fa27eddf3efbb29533@142.4.211.174:30303
  • enode://6100a114f47fd7181c73dae390ae22c80a66d80bf2221ea03da86849f18c70fe228622aa975e5d0e9d9de89a0fe43d71e76571109f8eda24c970eb9ca8adcb1c@217.16.185.175:30303
  • enode://7df4f8fa037f82cc03ba0c1acd3fccba4ae40fc03704283979f074cadf37cc5b70845d1acee4161c3432eb6934ba3020cbaf9cc2ba841cdfb03d113ebeef5b79@172.104.5.185:30303
  • enode://8f909a194e1364534350e5451ba7f3c159723dc06812583e3400161b494430a2f28199fa74624efadfad0eeedce5f84f66651491d482671b9fa2442dace83738@176.9.99.235:30303
  • enode://b0f7096cee9c97522417d930076e02567aadea87464a4869d84520cec3a28192cc0b3d458fd5825e8ec3c4b12024a0b9628cbfc39bcda9c73d3bdc17a4532608@52.90.217.4:30303
  • enode://b7d6ed5f4980197cb2a58270ba5119dc08b27c261c19de3684e0443e434a81557ecafee341f98262ad7419aa43b434dc655c2c4a1bb58ca9a0a4682ace0243bd@165.227.179.253:30303
  • enode://bd0297e844ec934036015b5a16d46e2a45e52a237e810a31d40908a1323cbfb2ede17f7bff50049c9ffb1740faa5ac54adcb82399fecd1d916bc744d024f4727@13.113.34.20:30303
  • enode://ec8c35923e76ce90ada38843fc1483fd74fd59d5a47e71086fed94ab34610de26ea2cfabc933d2c599e895dd5246bb33e479fa0a9b2362065dbf91f0f92c6e59@94.130.35.43:30303

Coin Marketplace

STEEM 0.23
TRX 0.21
JST 0.036
BTC 97641.56
ETH 3412.65
USDT 1.00
SBD 3.24