Git Product home page Git Product logo

testnet's Introduction

Sync node

From snapshot (fast)

  1. Download binary
wget https://github.com/crossfichain/crossfi-node/releases/download/v0.3.0-prebuild3/crossfi-node_0.3.0-prebuild3_linux_amd64.tar.gz && tar -xf crossfi-node_0.3.0-prebuild3_linux_amd64.tar.gz
  1. Download configs
git clone https://github.com/crossfichain/testnet.git
  1. Start node
./bin/crossfid start --home ./testnet

Archive

  1. Download binary
wget https://github.com/crossfichain/crossfi-node/releases/download/v0.2.0-prebuild6/crossfi-node_0.2.0-prebuild6_linux_amd64.tar.gz && tar -xf crossfi-node_0.2.0-prebuild6_linux_amd64.tar.gz
  1. Download and edit configs
git clone https://github.com/crossfichain/testnet.git

Edit testnet/config/config.toml: set enabled = false in [statesync] section.

  1. Start node
./bin/crossfid start --home ./testnet

Run a validator

  1. Sync your node using instruction above
  2. Create your key by running ./bin/crossfid --home ./testnet keys add my_validator. If you already have a wallet, you can recover with ./bin/crossfid --home ./testnet keys add my_validator --recover then you can paste your mnemonics.
  3. Get address from commands output and top in up with some amount of MPX
  4. Run transaction to create a validator:
./bin/crossfid --home ./testnet tx staking create-validator \
  --amount=1000000000000000000mpx \
  --pubkey=$(./bin/crossfid --home ./testnet tendermint show-validator) \
  --moniker="My Fist Validator" \
  --chain-id="crossfi-evm-testnet-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1000000" \
  --gas="auto" \
  --gas-prices="10000000000000mpx" \
  --gas-adjustment=1.5 \
  --from=my_validator
  1. Check out your validator in https://test.xfiscan.com/

testnet's People

Contributors

crossfidev avatar codebycinar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.