Skip to content
The Dothereum reference node implemention.
Rust Shell
Branch: alpha
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
res res: update alpha bootnodes (#30) Sep 25, 2019
runtime
scripts
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md
build.rs

README.md

Dothereum Badge Discord

The Dothereum reference node implemention; written in Rust, based on the Substrate v2.0 framework.

Dothereum 0.1 Alpha

  • stage: Testnet 0.1 Alpha
  • id: xth_alpha
  • protocolId: xth
  • specVersion: 1004
  • ss58Format: 20
  • tokenDecimals: 18
  • tokenSymbol: XTH
  • expectedBlockTime: 15 seconds
  • epochDuration: 4 hours
  • genesisStateRoot: 0x809c…2adf
  • genesisBlockHash: 0x6646…1e89

You can directly connect to the public testnet with:

dothereum --chain alpha
  • Bootnodes:
    • /ip4/51.15.116.226/tcp/34242/p2p/QmTwkE6jMezw3JdrMKTBqT7RKMn2XuKnSnYWHWM7Y3pSKJ
    • /ip4/51.15.119.157/tcp/45678/p2p/Qmd9BogCtnfKj8PcJMDVNg9sNQk7Cv2pDrhatCq6KggFHB
    • /ip4/51.15.97.240/tcp/45678/p2p/QmfPSEGncA4KrdEaLU1LWUt93Dsyv3gnoHwaqPKCeSVCSM
    • /ip4/51.158.190.99/tcp/45678/p2p/QmXTnwNMVL8wr8H7iq1jKhmhTEDEQSWeKiQNn3AoAF3hfK
  • Telemetry: telemetry.polkadot.io/#list/Dothereum 0.1 Alpha

Build the node from source

  1. Install Rust:
curl https://sh.rustup.rs -sSf | sh
  1. Install additional dependencies, i.e,. for Ubuntu:
sudo apt install build-essential cmake pkg-config libssl-dev openssl git clang libclang-dev
  1. Install required tools:
./scripts/init.sh
  1. Ensure Cargo is in your $PATH:
export PATH=$PATH:$HOME/.cargo/bin
  1. Build the node
cargo build --release
  1. The binary can be found in
./target/release/dothereum

Run a local Dothereum testnet

You can run a multi-node local testnet by using the built-in chain specification local and start validating blocks with the preset accounts for --alice and --bob:

dothereum --chain local \
  --base-path /tmp/local-xth/alice \
  --alice \
  --port 31337 \
  --validator \
  --node-key 00000000000000000000000000000000000000000000000000000000000a11c3

The --bootnodes flag ensures Bob connecting to Alice.

dothereum --chain local \
  --base-path /tmp/local-xth/bob \
  --bob \
  --port 34242 \
  --validator \
  --node-key 0000000000000000000000000000000000000000000000000000000000000b0b \
  --bootnodes /ip4/127.0.0.1/tcp/31337/p2p/QmWboyUFLWqHnkYzGLq5fYFzviDJbvuYG3RNNK5r8xZkYG

To add more validators to your network, use the preconfigured accounts --charlie, --dave, --eve, and --ferdie. Make sure to connect them to Alice's and Bob's nodes using the --bootnodes flag.

Run a Dothereum development chain

You can quickly start a local development chain with:

dothereum --dev

Get help

Detailed logs may be shown by running the node with the following environment variables set:

RUST_LOG=debug RUST_BACKTRACE=1 dothereum --dev

Additional CLI usage options are available and may be shown by running:

dothereum --help

For questions and bug reports, please use the Github issue tracker.

You can’t perform that action at this time.