govite

package module
v0.0.3-powserver Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

README


Logo

What is Vite?


Vite is a next-generation Reactive Blockchain that adopts a message-driven, asynchronous architecture and a DAG-based ledger. The goal for Vite’s design is to provide a reliable public platform for industrial dApps, with features of ultra-high throughput and scalability.


Guides & Documentation

Product

BUILD

  1. Install Go
  2. Run go get github.com/vitelabs/go-vite in your terminal, then you will find the source code here: $GOPATH/src/github.com/vitelabs/go-vite/ (as default, $GOPATH is ~/go)
  3. Go to the source code directory and run make all, you will get executable files of darwin, linux, windows here: $GOPATH/src/github.com/vitelabs/go-vite/build/cmd/rpc
  4. Run the appropriate binary file on your OS.

CONFIG

As default, Vite will give a default config. but you can set your config use two way as following.

cmd

key type default meaning
name string "vite-server" the server name, use for log
maxpeers number 50 the maximum number of peers can be connected
addr string "0.0.0.0:8483" will be listen by vite
dir string "~/viteisbest" the directory in which vite will store all files (like log, ledger)
netid number 2 the network vite will connect, default 2 means TestNet
priv string "" the hex code string of ed25519 privateKey

configFile

we can also use config file vite.config.json to set Config. for example:

{
    "P2P": {
        "Name":                 "vite-server",
        "PrivateKey":           "",
        "MaxPeers":             100,
        "Addr":                 "0.0.0.0:8483",
        "NetID":                2
    },
    "DataDir": ""
}

vite.config.json should be in the same directory of vite.

Documentation

Index

Constants

View Source
const VITE_VERSION = ""

Variables

This section is empty.

Functions

func PrintBuildVersion

func PrintBuildVersion()

Types

This section is empty.

Directories

Path Synopsis
cmd
internal/vitejsext
package vitejsext contains gvite specific vite.js extensions.
package vitejsext contains gvite specific vite.js extensions.
rpc
tmp
Package common contains various helper functions.
Package common contains various helper functions.
hexutil
Package hexutil implements hex encoding with 0x prefix.
Package hexutil implements hex encoding with 0x prefix.
math
Package math provides integer math utilities.
Package math provides integer math utilities.
ed25519
Package ed25519 implements the Ed25519 signature algorithm.
Package ed25519 implements the Ed25519 signature algorithm.
Package log15 provides an opinionated, simple toolkit for best-practice logging that is both human and machine readable.
Package log15 provides an opinionated, simple toolkit for best-practice logging that is both human and machine readable.
p2p
nat
pow
Package rpc provides access to the exported methods of an object across a network or other I/O connection.
Package rpc provides access to the exported methods of an object across a network or other I/O connection.
api
net
vm
* Package vm implements the vite virtual machine
* Package vm implements the vite virtual machine
abi

Jump to

Keyboard shortcuts

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