Giter Site home page Giter Site logo

ThaiChain

ThaiFi is a blockchain service that allows developers to build their own DeFi using smart contract. ThaiFi also compatible with the Ethereum Virtual Machine (EVM), which means it’s capable of running dapps ported over from Ethereum.

How to Run A Fullnode on ThaiFi

Fullnodes Functions

  • Stores the full blockchain history on disk and can answer the data request from the network.
  • Receives and validates the new blocks and transactions.
  • Verifies the states of every accounts.

Minimum Requirements

The hardware must meet certain requirements to run a full node.

  • VPS running recent versions of Mac OS X or Linux.
  • 500 GB of free disk space
  • 4 cores of CPU and 8 gigabytes of memory (RAM).
  • A broadband Internet connection with upload/download speeds of at least 1 megabyte per second

Settings

Sync Mode

Fast Sync

The default sync mode. Synchronizes a full node doing a fast synchronization by downloading the entire state database, requesting the headers first, and filling in block bodies and receipts afterward. Once the fast sync reaches the best block of the Ethereum network, it switches to full sync mode.

Full Sync

Synchronizes a full node starting at genesis, verifying all blocks and executing all transactions. This mode is a bit slower than the fast sync mode but comes with increased security.

Steps to Run a ThaiFi Fullnode

$ git clone https://github.com/ThaiFi/thaifi.git
# Enter the folder thaifi was cloned into
cd thaifi
# Write genesis state locally
$ docker run -it --rm  -v $PWD:/tfi -w /tfi ethereum/client-go --datadir /tfi/node init genesis.json
# Start your fullnode
$ docker run -it --restart=always  -p 30333:30333 --name tfi-node -v $PWD:/tfi -w /tfi ethereum/client-go \ 
--datadir /tfi/node --nousb --config ./config.toml  -cache 4096 --port 30333
 

Start your fullnode or a validator node

$ git clone https://github.com/ThaiFi/thaifi.git
## Enter the folder thaifi was cloned into
cd thaifi
## Write genesis state locally
$ docker run -it --rm  -v $PWD:/tfi -w /tfi ethereum/client-go --datadir /tfi/node init genesis.json
## generate  password
$ echo "[Your Password]" > password.txt
## create new account
$ docker run -it --rm -v $PWD:/tfi -w /tfi ethereum/client-go --datadir /tfi/node --password password.txt account new
## Start your fullnode
$ docker run -itd --restart=always -p 30003:30333 --name tfi-node -v $PWD:/tfi -w /tfi ethereum/client-go \
--datadir /tfi/node --networkid 17 -cache 4096 --port 30333 --mine --unlock [account] --password password.txt \
--syncmode=full --gcmode=archive --nousb

ThaiFi #DeFi Blockchain's Projects

chains icon chains

provides metadata for networkIDs and chainIDs

go-ethereum icon go-ethereum

Official Go implementation of the Ethereum protocol

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.