You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jae Kwon bf5738f9f8 Send NewRoundStepMessage/CommitMessage on AddPeer() 10 years ago
account get_account and sequence updating 10 years ago
alert Write log also to a file. 10 years ago
binary rpc/account; fixed mempool tx filter bug; fixed iavl_tree persistence 10 years ago
block rpc/account; fixed mempool tx filter bug; fixed iavl_tree persistence 10 years ago
cmd API to list accounts 10 years ago
common change logger to log15 10 years ago
config Send SeenValidation to peer & use for proposals when we don't have LastCommits due to reboot 10 years ago
consensus Send NewRoundStepMessage/CommitMessage on AddPeer() 10 years ago
db rpc/account; fixed mempool tx filter bug; fixed iavl_tree persistence 10 years ago
logger Write log also to a file. 10 years ago
mempool rpc/account; fixed mempool tx filter bug; fixed iavl_tree persistence 10 years ago
merkle rpc/account; fixed mempool tx filter bug; fixed iavl_tree persistence 10 years ago
p2p Write log also to a file. 10 years ago
rpc get_account and sequence updating 10 years ago
state get_account and sequence updating 10 years ago
.gitignore start writing rpc 10 years ago
LICENSE.md Update README 10 years ago
Makefile fix race conditions 10 years ago
README.md Update README.md 10 years ago

README.md

Website | Blog | [Forum] (http://forum.tendermint.com) | [IRC] (http://webchat.freenode.net/?randomnick=1&channels=%23tendermint)

Tendermint in Golang

Tendermint is a completely decentralized byzantine consensus protocol suitable for use in cryptocurrencies.

This project is a reference implementation of the protocol.

Submodules

  • consensus: core consensus algorithm
  • state: application state; mutated by transactions
  • blocks: structures of the blockchain
  • mempool: gossip of new transactions
  • merkle: merkle hash trees
  • p2p: extensible P2P networking

Requirements

Go 1.2 or newer.

OpenSSL header files. sudo apt-get install libssl-dev on Debian/Ubuntu

//TODO OpenSSL header files for other platforms

###Setting up Golang

Install Go for your platform

Set up environment variables. Go requires certain environment variables to compile code. Set these in your terminal, .profile or .zshrc as appropiate.

export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/gopkg

Build

Build Status

make get_deps
make

Run

./tendermint daemon --help

Editing your config file

When ./tendermint daemon is first run, a file will be create in ~/.tendermint/config.toml

//TODO Explanation of other config.toml fields

# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml

Network =         "tendermint_testnet0"
ListenAddr =      "0.0.0.0:0"
# First node to connect to.  Command-line overridable.
SeedNode =        "23.239.22.253:8080"

[DB]
# The only other available backend is "memdb"
Backend =         "leveldb"
# The leveldb data directory.
# Dir =           "<YOUR_HOME_DIRECTORY>/.tendermint/data"

[RPC]
# For the RPC API HTTP server.  Port required.
HTTP.ListenAddr = "0.0.0.0:8081"

[Alert]
# TODO: Document options

[SMTP]
# TODO: Document options

You will also to need to have a genesis.json in ~/.tendermint/. This must be the common genesis.json as the network you are joining from the Seed Node

{
  "Accounts": [
    {
      "Address": "6070ff17c39b2b0a64ca2bc431328037fa0f4760",
      "Amount":  200000000
    }
  ],
  "Validators": [
    {
      "PubKey": [1, "6bd490c212e701a2136eeea04f06fa4f287ee47e2b7a9b5d62edd84cd6ad9753"],
      "Amount": 100000000,
      "UnbondTo": [
        {
          "Address": "6070ff17c39b2b0a64ca2bc431328037fa0f4760",
          "Amount":  100000000
        }
      ]
    }
  ]
}

Resources

IRC Channel: #tendermint on freenode