GithubHelp home page GithubHelp logo

akagi201 / subchain Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 50.65 MB

A prototype chain based on substrate

License: The Unlicense

Rust 96.32% Shell 0.34% Nix 0.73% Handlebars 2.62%
substrate poe proof-of-existence pallets runtime frame polkadot blockchain polkadot-js

subchain's Introduction

Subchain

Build

cargo build --release

Run dev chain

./target/release/subchain --dev --tmp

Run subchain_testnet chain

./target/release/subchain --chain=subchain_testnet_raw.json

or

./target/release/subchain --chain=subchain_testnet

发布说明

在平行链上线之前,通过 benchmark 测出每个函数的性能消耗,可以更好的估算链上 gas 费用, Chainspec 作为创世文件,配置了一条区块链创世区块的状态存储,如通证总量、议会初始成员等等, 而 runtime 的配置常常与特定 pallet 的业务逻辑相关,比如 staking 中的最小锁定额度,最大验证人数量以及锁定期等等。

以后大家在开发时注意区分,runtime 里的参数配置与 chainspec 的初始状态配置; 可供参考的方法是:如果某个参数一旦定义不再更改,则可以作为创世状态写在 chainspec 里(如 token 发行总量),未来可能会伴随着 runtime 升级更改,则配置在 runtime 里(如 staking 中的最小锁定额度);和实际业务结合。

操作参考: https://github.com/clubnetwork/exercise6

subchain's People

Contributors

akagi201 avatar alfellati avatar amirabrams avatar anderssorby avatar apopiak avatar athei avatar bkchr avatar boozook avatar c410-f3r avatar cab404 avatar chenzongxiong avatar danforbes avatar disconnect3d avatar erasmus avatar hamidra avatar jeluard avatar jimmychu0807 avatar joshorndorff avatar kaichaosun avatar nukemandan avatar riusricardo avatar sacha-l avatar shawntabrizi avatar tripleight avatar vyorkin avatar wheresaddie avatar xlc avatar

Stargazers

 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.