No Description

Nikatlas bc07c0420d Bla bla 7 years ago
app bc07c0420d Bla bla 7 years ago
config 99cb51926a Promises Payable 7 years ago
dist 99cb51926a Promises Payable 7 years ago
test cceb49b89c Working Off chain 7 years ago
README.md 3d26762ca6 Update README.md 7 years ago
chains.json c6e7610713 Update to embark 2.4.1 7 years ago
embark.json 86a4a0e7ef Init commit 7 years ago
package.json 86a4a0e7ef Init commit 7 years ago

README.md

Padomima

Preqs : nodejs , embark

 sudo apt-get install nodejs 
 sudo apt-get install npm
 sudo apt-get install embark

Clone :

 git clone http://88.99.189.92:666/root/Padomima.git
 cd Padomima

Run Geth :

General Structure

 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

First Time Setup

Download and save genesis file from

Download Genesis File or

wget http://88.99.189.92/genesis/privategenesis
Initialize Geth
    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!

Second Time Setup

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"

Run Embark :

embark run