Coder Social home page Coder Social logo

klaytn-geth-db-analysis's Introduction

klaytn-geth-db-analysis

This repository for explaining Kalytn db data

Dependency

Output

├── db_extract.md # descrition
└── extract
    ├── 0_genesis_setup
    ├── 1_tx_broadcast
    └── 2_129_block_mined
└── db
    ├── 0_genesis_setup
    ├── 1_tx_broadcast
    └── 2_129_block_mined

db_extract.md

Extract DB

go run main.go > db_extract.txt

How to Run

1. Clone Klaytn

$ git clone https://github.com/klaytn/klaytn.git

2. Build

/klaytn $ make all

3. Clone homi-local

/klaytn $ git clone https://github.com/ian0371/homi-local

4. Setup Path

/klaytn $ export PATH=$PATH:~/klaytn/build/bin

/klaytn $ which homi
~/klaytn/build/bin/homi

5. Edit Shard Number

-     kcn --datadir "$DATA_DIR" init "$DATA_DIR/genesis.json"
+     kcn --db.num-statetrie-shards 1 --datadir "$DATA_DIR" init "$DATA_DIR/genesis.json"

homi-local/cmd/setup.sh#L11

-    $BIN/kcn $OPTIONS >> ${LOG_DIR}/kcnd.out 2>&1 &
+    $BIN/kcn --db.num-statetrie-shards 1 $OPTIONS >> ${LOG_DIR}/kcnd.out 2>&1 &

homi-local/kcnd.sh#L287

6. Setup Genesis Chaindata

/klaytn/homi-local $ homi setup --cn-num 1 --funding-addr ${address} local
/klaytn/homi-local $ ./run setup

More details from homi-local

7. Run Consensus Node

/klaytn/homi-local $ ./run start
/klaytn/homi-local $ ./run stop

klaytn-geth-db-analysis's People

Contributors

junha-ahn avatar

Watchers

 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.