Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mainnet YoCoin.org

Installing YoCoin node

YoCoin provides a default client implementation named yocoin, written in Golang and available at https://github.com/Yocoin15/Yocoin_Sources/, that can be installed either as a part of (YoCoin Wallet)[https://mist.yocoin.org] or by downloading a standalone pre-built bundle.

It is already configured to connect to our production network.

Windows instructions

Download a relevant archive, extract it, open command terminal and run: yocoin.exe console

Linux instructions

Currently we do not provide any pre-packaged .deb/.rpm file. It is required to download a binary release.

After downloading, extract it.

 sudo mkdir /opt/yocoin
 sudo tar -zxf yocoin-0.10-linux64.tgz -C /opt/yocoin 

Creating your first wallet

Start YoCoin in console mode and let it synchronize with the blockchain first. In the YoCoin console, try this:

 personal.newAccount()

To start mining with it, use

 miner.start()

Starting up your own private YoC network

Create a file named genesis.json containing seed parameters for new network:

{
  "config": {
    "chainId": 13,
    "homesteadBlock": 0,
    "eip155Block": 0,
    "eip158Block": 0
  },
  "difficulty": "200000",
  "gasLimit": "1050000",
    "alloc": {
        "99cEA7511F103C5465a80318Ad256C3a8C17cf5e": { "balance": "300000000000000000000000000" },
        "30361A617FD009782d573851C55C97A90C91255f": { "balance": "300000000000000000000000000" }
    }
  }

And start your private network with it (sample paths provided for Linux, on Windows replace "~/." to "C:\Yocoin" for example):

yocoin --datadir ~/.yocoin_priv_network init genesis.json
yocoin --fast --datadir ~/.yocoin_priv_network --ipcpath ~/.yocoin_priv_network/yocoin.ipc --networkid 13 console --maxpeers 0 --port "30301" --rpc --rpccorsdomain "*" console

#Add these peers if your having trouble connecting

admin.addPeer("enode://5c41098d930079d2880b6f6ff48b6f5a2cd0315d60d4fadf1b3f05049772593050e4c88cb1d6a878a5e1c5ae67fd010e7156f9f04711b5243b8a50337dfdf0d9@67.205.183.161:30303") admin.addPeer("enode://850789000e6a5dba7962f48df9922e24a40dc59a025bdb35953355bbf69721f856fd4e3f029e125a26153d62e15416471981c3ab8aeb274efb1763ddede790e3@67.205.162.228:30301") admin.addPeer("enode://4ae29c3a038c5912b54ee961478483065dcc27a4331c23f77593e98d835ef6f4c7c8e651c4934299d916f036da7639c07177ea79e94bd2818a90acf1d50aae74@165.227.92.171:30301") admin.addPeer("enode://0f3e72f6f5ab71f2154d394ab8b7a6d9eefef9fc4f4ebf2d40027f8802ada8260b069ba8ed7412c3e42d1491d3a66431e3bcd4ca233ba8eac46786859e2d9e69@165.227.92.67:30301") admin.addPeer("enode://f7c4d5541ba51fb274868d425ca1b2e3ca5ee1e50abde8813ba9eb367550dc4dd0bd89ab6d1c6912c9d40a8dd16503ca720a942800555a3a60bb1de697bd9b43@188.166.89.126:30303") admin.addPeer("enode://fdf887467936a7c9b51fb45bddea0c4933a0777c41e0c1a6130e11bdb7afda2e137f160cc95a4b00822cbf4c6c7a560335f9adac211800ff75d38d914c391fcd@213.108.213.214:30200") admin.addPeer("enode://545e09a485e451f0b0ce6902722383018ba2a0225d9f9da9bdfa7bf3ef5868cf96d5d7cc104ecdefd1f151fc5bf43898a7021d748bb7f4f05d0fd1c41e6c4aae@167.99.92.22:30303") admin.addPeer("enode://d8338d0568cde19c297f95004b35e762468f5b514432121f5485950f0587c2bfeda5b53cb5332f2e3c6589e021fe808559ba763f0bdb4653f3d113cd8e730d9f@165.227.92.53:30303") admin.addPeer("enode://7e7479abee563e72879f288fa9361474fc9aa3f1dc9a42dcd4cf10d9776cf6c13e0ccabfa9a1b0daae1cad999082fcb5347e5fa1a6d0fcdc32156a60687639d7@54.36.239.224:30304") admin.addPeer("enode://545e09a485e451f0b0ce6902722383018ba2a0225d9f9da9bdfa7bf3ef5868cf96d5d7cc104ecdefd1f151fc5bf43898a7021d748bb7f4f05d0fd1c41e6c4aae@139.59.0.57:30303") admin.addPeer("enode://4c38e8d235e22dcd5a3e53cd99872b960c665857be94118babc495ad2dec66340d5023e8480cc319fb1de4d8fee7221025de8754676e6228d28045fd68bb4dfa@67.205.156.7:30303") admin.addPeer("enode://a80cfcb2040db6d74e91cd361071bd15d0f58ea4658a209750a4f3283e6f0884182353316dfb284b2bc51220f0c4664ef69bc0795bfe6aaa39c36ba9b8b12222@104.131.1.32:30303") admin.addPeer("enode://5d3f41fe7b0df4ece3288d001a630189f116ea5f95ecba465ca33966fcb4371f5eb93ddf88117847720f571a538e603b294e00341e7d3ea14b8c91818fa03714@159.65.73.84:30303") admin.addPeer("enode://ae4bd74d53086bb6ec098c6d8e97c65f0dd5212b2892df35a244fbdfd2ddccf47895d71ab590a8d7c04424a51d824cb650a99b34eb003c95ce4ddf5e5fc7c42b@138.197.141.152:30303") admin.addPeer("enode://c0351acd12e08491ac202b2fc15b29005a84c7345ef46c402b7a54c236ea34cc3099279d2d5486fe09be7bc4b9821f767ce710b2f30e1638618252e7373b3ea5@167.99.129.116:30303") admin.addPeer("enode://a964272d8ae792a2357227627586942c1ed2268dd8b395be2ea88ee961b33105cd32ae119f5ba95faaafaceac12fcc3e19d2efb6613897a163b6a69393de4b6e@138.68.160.230:30303") admin.addPeer("enode://0c0622a48c7f450f8f78dde2b11ad5a0f4cf2624715f40b00c8da5be35702ff1ac8b290d5912cb8e7ce8a5b451d4dac906e45d5628f5d9e5567a455929dae369@206.189.34.215:30303") admin.addPeer("enode://f96eb858b5a25bff4fe863301095f3407b220bde8ccd448dd0ec6b5091ad551e7e785c828470abb076a020660cbcf8d91766ade2f777ec022c10db050333b68c@128.199.59.207:30303")

#Syncing is started

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