go-empow

module
v0.0.0-...-5fdeb2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2020 License: LGPL-3.0

README

EMPOW BLOCKCHAIN - Social Network on Blockchain

How to run full node
  • Machine requirements

    • CPU: 4 cores or more (8 cores recommended)
    • Memory: 8GB or more (16GB recommended)
    • Disk: 1TB or more (5TB HDD recommended)
    • Network: access to Internet with port tcp: 30000 opened (If you want to enable rpc for node, please open port 30001, 30002)
  • Run the boot script to start a full node:

    curl https://raw.githubusercontent.com/empow-blockchain/go-empow/master/script/boot.sh | bash

    INET : mainnet, testnet (default: mainnet)

Build Empow Blockchain
  • Install Golang

  • Install Git LFS

  • Config Environment Variable (GOPATH)

    • Edit file ~/.profile

    • Add these 2 lines to the end of the file

    export GOPATH=$(go env GOPATH)
    export PATH=$PATH:$GOPATH/bin
    
  • Pull code from github to golang folder

    go get -d github.com/empow-blockchain/go-empow
    
  • Build code

    cd $GOPATH/src/github.com/empow-blockchain/go-empow
    git lfs pull
    make build install
    cd vm/v8vm/v8/; make deploy; cd ../../..
    
  • Run blockchain

    iserver  -f ./config/iserver.yml
    

Directories

Path Synopsis
build
cmd
pob
core
blockcache/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mocks
Package core_mock is a generated GoMock package.
Package core_mock is a generated GoMock package.
tx
txpool/mock
Package txpool_mock is a generated GoMock package.
Package txpool_mock is a generated GoMock package.
pb
db
kv
mocks
Package db_mock is a generated GoMock package.
Package db_mock is a generated GoMock package.
wal
Package wal This Module is in so many aspects inspired by etcd's WAL.
Package wal This Module is in so many aspects inspired by etcd's WAL.
p2p
mocks
Package p2p_mock is a generated GoMock package.
Package p2p_mock is a generated GoMock package.
pb
rpc
mock_rpc
Package main is a generated GoMock package.
Package main is a generated GoMock package.
pb
Package rpcpb is a reverse proxy.
Package rpcpb is a reverse proxy.
test
gas
vm
Package vm is a generated GoMock package.
Package vm is a generated GoMock package.
database
Package database is a generated GoMock package.
Package database is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL