Nikatlas bc07c0420d Bla bla | il y a 7 ans | |
---|---|---|
app | il y a 7 ans | |
config | il y a 7 ans | |
dist | il y a 7 ans | |
test | il y a 7 ans | |
README.md | il y a 7 ans | |
chains.json | il y a 7 ans | |
embark.json | il y a 7 ans | |
package.json | il y a 7 ans |
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install embark
git clone http://88.99.189.92:666/root/Padomima.git
cd Padomima
sudo geth --networkid 15532 // Private chain on server network id
--password="/blockchains/privatekeys" // Password files for avoiding typing
--datadir="/blockchains/private/" // DATADIR to save the blockchain and the keystore (a.k.a. wallet)
--port 15532 // Network Port!
--rpc // Enable RPC to connect with embark
--rpcapi "eth,web3,shh" // RPC Api modules
--rpcport 15533 // RPC Port
--rpcaddr localhost // localhost
--rpccorsdomain="http://localhost:8000" // Allow embark run server to request from geth (CORS Enable)
--shh // enable whisper
--unlock=0 // Unlock account to be used without pass
console // Enable console
wget http://88.99.189.92/genesis/privategenesis
sudo geth --networkid 15532 --password="/blockchains/privatekeys" --datadir="/blockchains/private/" init GENESISFILE
sudo geth --networkid 15532 --password="/blockchains/privatekeys" --datadir="/blockchains/private/" account new
sudo geth --networkid 15532 --password="/blockchains/privatekeys" --datadir="/blockchains/private/" --port 15532 --rpc --rpcapi "eth,web3,shh" --rpcport 15533 --rpcaddr localhost --rpccorsdomain="http://localhost:8000" --shh --unlock=0 --bootnodes "enode://72e1359f99430b52ef9fcb722c40ef863c1b163155b032c34d6ffef6d5b558b1f65a94e8ded0a2bcbaaf315fe946ab4a17d25adea4ebeef9e498deded25c1830@88.99.189.92:15532"
You should see geth initialization and console waiting commands
admin.peers
[]
admin.addPeer("enode://72e1359f99430b52ef9fcb722c40ef863c1b163155b032c34d6ffef6d5b558b1f65a94e8ded0a2bcbaaf315fe946ab4a17d25adea4ebeef9e498deded25c1830@88.99.189.92:15532"); // this is the node p2p discovery protocol unique machine identity
Now you should see the blockchain synchronization!
Just start geth with the appropriate parameters
sudo geth --networkid 15532 --password="/blockchains/privatekeys" --datadir="/blockchains/private/" --port 15532 --rpc --rpcapi "eth,web3,shh" --rpcport 15533 --rpcaddr localhost --rpccorsdomain="http://localhost:8000" --shh --unlock=0 --bootnodes "enode://72e1359f99430b52ef9fcb722c40ef863c1b163155b032c34d6ffef6d5b558b1f65a94e8ded0a2bcbaaf315fe946ab4a17d25adea4ebeef9e498deded25c1830@88.99.189.92:15532"
embark run