github.com/cryptoecc/eth-ecc@v0.0.3/docs/connect_to_ECCPoW_Ethereum/Connect-to-ECCPoW-Etherem-test-network.md (about) 1 # Connect to ECCPoW Etherem test network 2 3 Contents 4 5 1. Set up your own node 6 2. Connect your node to ECCPoW Ethereum test network 7 8 Environment 9 10 - Linux (Ubuntu, Mint or Manjaro) 11 - Golang 12 13 To install environments, please follow below link 14 15 - For Linux: [Link](https://github.com/cryptoecc/ETH-ECC/blob/master/docs/eccpow%20windows%20instuction/Windows%20install%20instruction.md#4-%EB%A6%AC%EB%88%85%EC%8A%A4-%EC%83%81%EC%97%90%EC%84%9C-%EC%8B%A4%ED%96%89-%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95) 16 - For windows: [Link](https://github.com/cryptoecc/ETH-ECC/blob/master/docs/eccpow%20windows%20instuction/Windows%20install%20instruction.md) 17 18 ## Set up your node 19 20 Before connecting to ECCPoW network, you must set up your own node. 21 22 - For connection, you must use same genesis file and network id with ECCPoW Ethereum bootnode. 23 - Thus, in this chapter, we present how to set up your node with ECCPoW genesis file and network id 24 25 1. Clone ECCPoW Ethereum to your directory 26 27 ``` 28 git clone https://github.com/cryptoecc/ETH-ECC.git 29 ``` 30 31 If it is done, you can see `ETH-ECC` folder in your directory 32 33 2. Make a storage directory 34 35 - In storage directory, blocks and transactions information will be stored 36 37 In my case, 38 39 ``` 40 /document |---- /ETH-ECC 41 |---- /storage 42 ``` 43 44 Namely, there exists two directory in document directory 45 46 3. Initialize geth 47 48 - geth is the name of ECCPoW Ethereum client. 49 50 Move to `ETH-ECC` directory, open terminal and type below command to build ECCPoW Ethereum 51 52 ``` 53 make all 54 ``` 55 56 After finishing build, move to bin folder. bin folder is located in build directory 57 58 ``` 59 cd /build/bin 60 ``` 61 62 For initialize geth, open terminal in bin directory and type below command with replacement 63 64 ``` 65 ./geth --datadir {your_storage_directory} init ../../testnet_genesis/eccpow_test_flight.json 66 ``` 67 68 In my case, 69 70 ``` 71 ./geth --datadir ../../../storage init ../../testnet_genesis/eccpow_test_flight.json 72 ``` 73 74 It is end of initialization. In next chapter, we will present how to connect to ECCPoW Ethereum 75 76 ## Connect your node to ECCPoW Ethereum test network 77 78 Open your terminal in bin directory and type below command 79 80 ``` 81 ./geth --datadir {your_storage_directory} --networkid 4478 --bootnodes "enr:-J-4QBi1ddekLufbQDZR_zuEF85CTqG2zruZNjsUvET1-NdsVdgEvWP-LF2shXhwY6MjIoE91MKBrrKYbYflNx7weJsCg2V0aMfGhEF4tbCAgmlkgnY0gmlwhNJruhGJc2VjcDI1NmsxoQO_0KClP6S15b9O8NUOPs5bIdjCEFnWUH6afD9qjV3I4oN0Y3CCdmGDdWRwgn46hHVkcDaCdmE" 82 83 84 console 85 ``` 86 87 - 4478 is network id of ECCPoW Ethereum 88 89 In my case 90 91 ``` 92 ./geth --datadir ../../../storage --networkid 4478 --bootnodes "enr:-J-4QBi1ddekLufbQDZR_zuEF85CTqG2zruZNjsUvET1-NdsVdgEvWP-LF2shXhwY6MjIoE91MKBrrKYbYflNx7weJsCg2V0aMfGhEF4tbCAgmlkgnY0gmlwhNJruhGJc2VjcDI1NmsxoQO_0KClP6S15b9O8NUOPs5bIdjCEFnWUH6afD9qjV3I4oN0Y3CCdmGDdWRwgn46hHVkcDaCdmE" 93 94 95 console 96 ``` 97 98 > Bootnode 2 :"enr:-J-4QJl4bBe48b4gpctJj10kso6U9czjol6Uhvuw4H6fFUW2GUXLDpO_mMyBmPLrsT1mD42xE3ycU2sUBHcqXbviF7gCg2V0aMfGhHHGzwGAgmlkgnY0gmlwhNJruhGJc2VjcDI1NmsxoQPXzBOTV2LiZiOCahHv8nrIrT_cKv8fMY8QOTaKkXR-lIN0Y3CCdl-DdWRwgrWjhHVkcDaCdl8" 99 100 101 After few seconds, type below command in geth to watch a connected node 102 103 ``` 104 admin.peers 105 ``` 106 107 Then, you can see a node such as below figure 108 109 ![connecntion](./img/connecntion.png) 110 111 --- 112 113 If you have any question about this instruction, please make a issue in our [Github](https://github.com/cryptoecc/ETH-ECC) 114