xoreum

module
v0.0.0-...-dd5a67f Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT

README

Journal-based Blockchain

Running

  • Prerequisite: Golang
  1. Set configuration file (conf.json)
  2. $ sh build.sh // Build project
  3. $ ./full // Initialize full node
  4. $ ./light // Synchronize light node with full node

Configuration

Name Description Default
Hostname [string] Host name localhost
Port [string] Port number 8081
BlockNumber [int64] The number of blocks 100
Participants [int64] The number of participants 100
PrintMode [bool] Print blocks on console true
MiningInterval [int] Mining Interval (sec) 0 sec

Simulation

Simulation depending on the block number and participants number
  1. Set BlockNumber, Participants in conf.json

  2. Remove old DB directory, if it exists (or rename it)

    $ rm -rf chaindata*

  3. Run full node

    $ ./full

  4. Synchronize light node with full node

    $ ./light

Simulation depending on the network bandwidth and delay
  • See network/README.md

Directories

Path Synopsis
math
Package math provides integer math utilities.
Package math provides integer math utilities.
pow
rawdb
Package rawdb contains a collection of low level database accessors.
Package rawdb contains a collection of low level database accessors.
Go port of Coda Hale's Metrics library
Go port of Coda Hale's Metrics library
Package trie implements Merkle Patricia Tries.
Package trie implements Merkle Patricia Tries.
memorydb
Package memorydb implements the key-value database layer based on memory maps.
Package memorydb implements the key-value database layer based on memory maps.

Jump to

Keyboard shortcuts

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